CMake: Compile all sources for the test suite binary
This commit is contained in:
+2
-1
@@ -54,8 +54,9 @@ set(PROJECT_SOURCES ${PROJECT_SOURCES})
|
|||||||
|
|
||||||
# Define test source files
|
# Define test source files
|
||||||
file(GLOB_RECURSE TEST_SOURCES "test/*.cpp")
|
file(GLOB_RECURSE TEST_SOURCES "test/*.cpp")
|
||||||
file(GLOB_RECURSE MAIN_SOURCES "src/*/*.cpp")
|
file(GLOB_RECURSE MAIN_SOURCES "src/*.cpp")
|
||||||
set(TEST_SOURCES ${TEST_SOURCES} ${MAIN_SOURCES})
|
set(TEST_SOURCES ${TEST_SOURCES} ${MAIN_SOURCES})
|
||||||
|
list(REMOVE_ITEM TEST_SOURCES "${CMAKE_SOURCE_DIR}/src/main.cpp")
|
||||||
|
|
||||||
# ------------------------------------------
|
# ------------------------------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user