cmake_cpputest_template/tests/CMakeLists.txt

25 lines
360 B
CMake

project(Tests)
# TEST_DIRS
add_subdirectory(simple_test)
# TEST_RUNNER
add_executable(AllTests
AllTests.cpp
)
target_link_libraries(AllTests
${CPPUTEST_LIBRARIES}/libCppUTest.a
${CPPUTEST_LIBRARIES}/libCppUTestExt.a
simple_test
)
# INCLUDE_DIRS
# Build unit tests and link with other sources.
# Run the tests once build finished.