Commit b137a887 authored by Rune Dalmo's avatar Rune Dalmo

Cleaning up include directories and link libraries for gtest

parent e72e4864
# Find GTest
find_package(GTest REQUIRED)
include_directories(${GTEST_INCLUDE_DIRS})
link_libraries(${GTEST_BOTH_LIBRARIES})
# Enable testing
enable_testing()
......@@ -24,9 +21,9 @@ foreach(TEST ${TESTS})
add_executable( unittest_${TEST} ${TEST}.cpp )
# target_include_directories(unittest_${TEST} PRIVATE
# ${CMAKE_SOURCE_DIR}/include
# )
target_include_directories(unittest_${TEST} PRIVATE
${GTEST_INCLUDE_DIRS}
)
target_link_libraries(unittest_${TEST}
PRIVATE
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment