feat(ecs): implement basic ECS
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
|
||||
project(catboy_engine CXX)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
googletest
|
||||
URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip
|
||||
)
|
||||
|
||||
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
||||
FetchContent_MakeAvailable(googletest)
|
||||
|
||||
enable_testing()
|
||||
|
||||
file(GLOB_RECURSE LIBCATBOY_SRCS "src/libcatboy/**.cpp")
|
||||
file(GLOB_RECURSE LIBCATBOY_HDRS "include/libcatboy/**.hpp")
|
||||
add_library(libcatboy STATIC ${LIBCATBOY_SRCS} ${LIBCATBOY_HDRS})
|
||||
target_include_directories(libcatboy PUBLIC include/)
|
||||
set_target_properties(libcatboy PROPERTIES LINKER_LANGUAGE CXX)
|
||||
|
||||
file(GLOB_RECURSE TEST_SRCS "test/**.cpp")
|
||||
add_executable(catboy_test ${TEST_SRCS})
|
||||
target_link_libraries(catboy_test libcatboy GTest::gtest_main)
|
||||
include(GoogleTest)
|
||||
gtest_discover_tests(catboy_test)
|
||||
Reference in New Issue
Block a user