Move test cases to test dir
This commit is contained in:
@@ -7,13 +7,4 @@ 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)
|
||||
add_subdirectory(test)
|
||||
10
src/tuple/test/CMakeLists.txt
Normal file
10
src/tuple/test/CMakeLists.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
###############################################################################
|
||||
# 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)
|
||||
Reference in New Issue
Block a user