Minor change in FindTests.cmake

This commit is contained in:
David Capello 2016-06-22 18:20:59 -03:00
parent a9cea5ab42
commit c77ee9a6b5

View File

@ -1,3 +1,4 @@
# Copyright (C) 2001-2016 David Capello
# Find tests and add rules to compile them and run them
function(find_tests dir dependencies)
@ -22,14 +23,14 @@ function(find_tests dir dependencies)
if(MSVC)
# Fix problem compiling gen from a Visual Studio solution
set_target_properties(${testname}
PROPERTIES LINK_FLAGS -ENTRY:"mainCRTStartup")
PROPERTIES LINK_FLAGS -ENTRY:"mainCRTStartup")
endif()
target_link_libraries(${testname} gtest ${ARGV} ${PLATFORM_LIBS})
if(extra_definitions)
set_target_properties(${testname}
PROPERTIES COMPILE_FLAGS ${extra_definitions})
PROPERTIES COMPILE_FLAGS ${extra_definitions})
endif()
endforeach()
endfunction()