mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-29 09:23:32 +00:00
Include third_party/gtest/include as -I only one time.
This commit is contained in:
parent
1d5274d435
commit
8e54e0cbd5
@ -275,6 +275,9 @@ endif()
|
|||||||
|
|
||||||
file(GLOB_RECURSE tests *_unittest.cpp)
|
file(GLOB_RECURSE tests *_unittest.cpp)
|
||||||
|
|
||||||
|
# Add gtest include directory so we can #include <gtest/gtest.h> in tests source code
|
||||||
|
include_directories(${CMAKE_SOURCE_DIR}/third_party/gtest/include)
|
||||||
|
|
||||||
foreach(testsourcefile ${tests})
|
foreach(testsourcefile ${tests})
|
||||||
get_filename_component(testname ${testsourcefile} NAME_WE)
|
get_filename_component(testname ${testsourcefile} NAME_WE)
|
||||||
|
|
||||||
@ -282,9 +285,6 @@ foreach(testsourcefile ${tests})
|
|||||||
|
|
||||||
target_link_libraries(${testname} gtest ${all_libs})
|
target_link_libraries(${testname} gtest ${all_libs})
|
||||||
|
|
||||||
# Add gtest include directory so we can #include <gtest/gtest.h> in tests source code
|
|
||||||
include_directories(${CMAKE_SOURCE_DIR}/third_party/gtest/include)
|
|
||||||
|
|
||||||
add_custom_target(run_${testname}
|
add_custom_target(run_${testname}
|
||||||
COMMAND ${testname})
|
COMMAND ${testname})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user