Browse Source

CMake: Compile all sources for the test suite binary

master
Riyyi 3 years ago
parent
commit
8c8eb01d18
  1. 3
      CMakeLists.txt

3
CMakeLists.txt

@ -54,8 +54,9 @@ set(PROJECT_SOURCES ${PROJECT_SOURCES})
# Define test source files
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})
list(REMOVE_ITEM TEST_SOURCES "${CMAKE_SOURCE_DIR}/src/main.cpp")
# ------------------------------------------

Loading…
Cancel
Save