|
|
|
@ -110,7 +110,7 @@ endif() |
|
|
|
|
|
|
|
|
|
|
|
# Build the TestSuite-related functionality only if it is present |
|
|
|
# Build the TestSuite-related functionality only if it is present |
|
|
|
find_package(Corrade COMPONENTS TestSuite) |
|
|
|
find_package(Corrade COMPONENTS TestSuite) |
|
|
|
if(Corrade_TestSuite_FOUND) |
|
|
|
if(Corrade_TestSuite_FOUND AND WITH_TRADE) |
|
|
|
list(APPEND MagnumDebugTools_GracefulAssert_SRCS |
|
|
|
list(APPEND MagnumDebugTools_GracefulAssert_SRCS |
|
|
|
CompareImage.cpp) |
|
|
|
CompareImage.cpp) |
|
|
|
|
|
|
|
|
|
|
|
@ -148,7 +148,7 @@ elseif(BUILD_STATIC_PIC) |
|
|
|
set_target_properties(MagnumDebugTools PROPERTIES POSITION_INDEPENDENT_CODE ON) |
|
|
|
set_target_properties(MagnumDebugTools PROPERTIES POSITION_INDEPENDENT_CODE ON) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
target_link_libraries(MagnumDebugTools PUBLIC Magnum) |
|
|
|
target_link_libraries(MagnumDebugTools PUBLIC Magnum) |
|
|
|
if(Corrade_TestSuite_FOUND) |
|
|
|
if(Corrade_TestSuite_FOUND AND WITH_TRADE) |
|
|
|
target_link_libraries(MagnumDebugTools PUBLIC |
|
|
|
target_link_libraries(MagnumDebugTools PUBLIC |
|
|
|
Corrade::TestSuite |
|
|
|
Corrade::TestSuite |
|
|
|
MagnumTrade) |
|
|
|
MagnumTrade) |
|
|
|
@ -189,7 +189,7 @@ if(BUILD_TESTS) |
|
|
|
set_target_properties(MagnumDebugToolsTestLib PROPERTIES POSITION_INDEPENDENT_CODE ON) |
|
|
|
set_target_properties(MagnumDebugToolsTestLib PROPERTIES POSITION_INDEPENDENT_CODE ON) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
target_link_libraries(MagnumDebugToolsTestLib PUBLIC Magnum) |
|
|
|
target_link_libraries(MagnumDebugToolsTestLib PUBLIC Magnum) |
|
|
|
if(Corrade_TestSuite_FOUND) |
|
|
|
if(Corrade_TestSuite_FOUND AND WITH_TRADE) |
|
|
|
target_link_libraries(MagnumDebugToolsTestLib PUBLIC |
|
|
|
target_link_libraries(MagnumDebugToolsTestLib PUBLIC |
|
|
|
Corrade::TestSuite |
|
|
|
Corrade::TestSuite |
|
|
|
MagnumTrade) |
|
|
|
MagnumTrade) |
|
|
|
|