1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Description: Find the static gtest library
libgtest.a is built before aseprite in build/gtest.
This linker flag is necessary for this library to be found.
Author: Tobias Hansen <thansen@debian.org>
--- a/cmake/FindTests.cmake
+++ b/cmake/FindTests.cmake
@@ -26,7 +26,11 @@
PROPERTIES LINK_FLAGS -ENTRY:"mainCRTStartup")
endif()
- target_link_libraries(${testname} gtest ${ARGV} ${PLATFORM_LIBS})
+ if(USE_SHARED_GTEST)
+ target_link_libraries(${testname} -L${CMAKE_BINARY_DIR}/gtest gtest ${ARGV} ${PLATFORM_LIBS})
+ else()
+ target_link_libraries(${testname} gtest ${ARGV} ${PLATFORM_LIBS})
+ endif()
if(extra_definitions)
set_target_properties(${testname}
|