generated from aselimov/cpp_project_template
11 lines
303 B
CMake
11 lines
303 B
CMake
include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR})
|
|
|
|
add_executable(${NAME}_tests
|
|
vec_test.cpp
|
|
)
|
|
|
|
target_link_libraries(${NAME}_tests gtest gtest_main)
|
|
target_link_libraries(${NAME_tests} ${NAME})
|
|
|
|
add_test(NAME Vec3Tests COMMAND ${CMAKE_BINARY_DIR}/tests/unit_tests/${NAME}_tests)
|