Static libraries (#213)

This commit is contained in:
Erik Fröjdh
2020-11-03 18:54:11 +01:00
committed by GitHub
parent f6fff9d916
commit 121a3ad733
7 changed files with 86 additions and 49 deletions

View File

@ -24,7 +24,7 @@ foreach(exe ${MOENCH_EXECUTABLES})
target_link_libraries(${exe}
PUBLIC
slsSupportShared
slsSupportStatic
${ZeroMQ_LIBRARIES}
pthread
TIFF::TIFF
@ -37,4 +37,9 @@ foreach(exe ${MOENCH_EXECUTABLES})
set_target_properties(${exe} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
)
if(SLS_LTO_AVAILABLE)
set_property(TARGET ${exe} PROPERTY INTERPROCEDURAL_OPTIMIZATION True)
endif()
endforeach(exe ${MOENCH_EXECUTABLES})