If in mode debug then all warnings are shown, in release mode just compile without showing warnings
18 lines
408 B
CMake
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
|
|
>) |