From 3d8cc67a8d2b10120d847969cab1f65d1eaf290a Mon Sep 17 00:00:00 2001 From: Keegan Morrow Date: Thu, 19 Jan 2017 18:44:13 -0800 Subject: [PATCH] common: Split test module from core --- test/CMakeLists.txt | 2 ++ test/common/CMakeLists.txt | 5 +++++ test/{core => common}/math.cpp | 0 test/core/CMakeLists.txt | 1 - 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 test/common/CMakeLists.txt rename test/{core => common}/math.cpp (100%) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index d1ad776..643100b 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -6,11 +6,13 @@ add_custom_target ( # Allow all children to headers relative to the src directory include_directories(${CMAKE_SOURCE_DIR}/src) +add_subdirectory(common) add_subdirectory(core) add_subdirectory(systems) # Define an executable for engine test set(SRCS_TEST_ENGINE + ${SRCS_TEST_COMMON} ${SRCS_TEST_CORE} ${SRCS_TEST_SYSTEMS} ${CMAKE_CURRENT_SOURCE_DIR}/test_main.cpp diff --git a/test/common/CMakeLists.txt b/test/common/CMakeLists.txt new file mode 100644 index 0000000..0a714d2 --- /dev/null +++ b/test/common/CMakeLists.txt @@ -0,0 +1,5 @@ +set(SRCS_TEST_COMMON + "${CMAKE_CURRENT_SOURCE_DIR}/math.cpp" + PARENT_SCOPE +) + diff --git a/test/core/math.cpp b/test/common/math.cpp similarity index 100% rename from test/core/math.cpp rename to test/common/math.cpp diff --git a/test/core/CMakeLists.txt b/test/core/CMakeLists.txt index c1db0e1..5fc572e 100644 --- a/test/core/CMakeLists.txt +++ b/test/core/CMakeLists.txt @@ -1,6 +1,5 @@ set(SRCS_TEST_CORE "${CMAKE_CURRENT_SOURCE_DIR}/example_module.cpp" - "${CMAKE_CURRENT_SOURCE_DIR}/math.cpp" PARENT_SCOPE )