adding LTO to tests

This commit is contained in:
Erik Frojdh
2021-11-24 17:40:14 +01:00
parent 77e610f5a5
commit b0a5a76065
6 changed files with 21 additions and 13 deletions

View File

@ -43,6 +43,10 @@ if (SLS_USE_RECEIVER)
endif (SLS_USE_RECEIVER)
if((CMAKE_BUILD_TYPE STREQUAL "Release") AND SLS_LTO_AVAILABLE)
set_property(TARGET tests PROPERTY INTERPROCEDURAL_OPTIMIZATION True)
endif()
set_target_properties(tests PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
)