19 lines
757 B
CMake
19 lines
757 B
CMake
|
|
###############################################################################
|
||
|
|
# tuple
|
||
|
|
###############################################################################
|
||
|
|
|
||
|
|
add_library(tuple tuple.cpp)
|
||
|
|
target_include_directories(tuple PUBLIC ${CMAKE_SOURCE_DIR}/src/tuple)
|
||
|
|
target_include_directories(tuple PUBLIC ${CMAKE_SOURCE_DIR}/src/crc32)
|
||
|
|
target_link_libraries(tuple)
|
||
|
|
|
||
|
|
###############################################################################
|
||
|
|
# gtest
|
||
|
|
###############################################################################
|
||
|
|
|
||
|
|
add_executable(gtest_tuple gtest_tuple.cpp)
|
||
|
|
target_include_directories(gtest_tuple PUBLIC ${CMAKE_CURRENT_LIST_DIR})
|
||
|
|
target_link_libraries(gtest_tuple tuple gtest)
|
||
|
|
|
||
|
|
include(GoogleTest)
|
||
|
|
gtest_discover_tests(gtest_tuple)
|