cmake_cpputest_template/tests/wwdg/CMakeLists.txt

24 lines
546 B
CMake

# File: tests/wwdg/CMakeLists.txt
add_subdirectory(mocks)
add_subdirectory(fakes)
add_subdirectory(stubs)
# TEST_RUNNER
add_library(test_wwdg
test_wwdg.cpp
)
target_link_libraries(test_wwdg
${CPPUTEST_LIBRARIES}
wwdg
)
target_include_directories(test_wwdg PUBLIC
${CMAKE_CURRENT_LIST_DIR}
#Next comes the shared and non-module specific test depencencies.
${CMAKE_SOURCE_DIR}/inc/
${CMAKE_SOURCE_DIR}/tests/shared/mocks/
${CMAKE_SOURCE_DIR}/tests/shared/fakes/
${CMAKE_SOURCE_DIR}/tests/shared/stubs/
)