mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-25 15:18:23 +00:00
Minor change in FindTests.cmake
This commit is contained in:
parent
a9cea5ab42
commit
c77ee9a6b5
@ -1,3 +1,4 @@
|
|||||||
|
# Copyright (C) 2001-2016 David Capello
|
||||||
# Find tests and add rules to compile them and run them
|
# Find tests and add rules to compile them and run them
|
||||||
|
|
||||||
function(find_tests dir dependencies)
|
function(find_tests dir dependencies)
|
||||||
@ -22,14 +23,14 @@ function(find_tests dir dependencies)
|
|||||||
if(MSVC)
|
if(MSVC)
|
||||||
# Fix problem compiling gen from a Visual Studio solution
|
# Fix problem compiling gen from a Visual Studio solution
|
||||||
set_target_properties(${testname}
|
set_target_properties(${testname}
|
||||||
PROPERTIES LINK_FLAGS -ENTRY:"mainCRTStartup")
|
PROPERTIES LINK_FLAGS -ENTRY:"mainCRTStartup")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(${testname} gtest ${ARGV} ${PLATFORM_LIBS})
|
target_link_libraries(${testname} gtest ${ARGV} ${PLATFORM_LIBS})
|
||||||
|
|
||||||
if(extra_definitions)
|
if(extra_definitions)
|
||||||
set_target_properties(${testname}
|
set_target_properties(${testname}
|
||||||
PROPERTIES COMPILE_FLAGS ${extra_definitions})
|
PROPERTIES COMPILE_FLAGS ${extra_definitions})
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
Loading…
Reference in New Issue
Block a user