Files
TopTeamBedrijfssimulaties-S…/tests/CMakeLists.txt
Sander Speetjens 91d3952ea0 Change target compile options
If in mode debug then all warnings are shown, in release mode just compile without showing warnings
2022-11-13 19:37:12 +01:00

18 lines
408 B
CMake

# Third Party
include_directories(${GTEST_INCLUDE_DIR})
link_directories(${GTEST_LIB_DIR})
set(LIBS
${LIBS}
gtest
TopTeamBedrijfssimulaties)
# tests
file(GLOB_RECURSE TEST_SOURCES "*.cpp")
add_executable(tests ${TEST_SOURCES})
target_link_libraries(tests ${LIBS})
target_compile_options(tests PRIVATE $<$<CONFIG:Debug>:
-Wall -Wextra -pedantic-errors -Wconversion -Wsign-conversion
>)