23 lines
511 B
CMake
23 lines
511 B
CMake
# File: tests/I2C/CMakeLists.txt
|
|
|
|
add_subdirectory(mocks)
|
|
add_subdirectory(fakes)
|
|
add_subdirectory(stubs)
|
|
|
|
# TEST_RUNNER
|
|
add_library(test_I2C
|
|
test_I2C.cpp
|
|
)
|
|
|
|
target_link_libraries(test_I2C
|
|
${CPPUTEST_LIBRARIES}
|
|
I2C
|
|
)
|
|
|
|
target_include_directories(test_I2C PUBLIC
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
#Next comes the shared and non-module specific test depencencies.
|
|
${CMAKE_SOURCE_DIR}/tests/shared/mocks/
|
|
${CMAKE_SOURCE_DIR}/tests/shared/fakes/
|
|
${CMAKE_SOURCE_DIR}/tests/shared/stubs/
|
|
)
|