]> granicus.if.org Git - icinga2/blob - agent/CMakeLists.txt
CMake: Fix LTO flags for shared linking
[icinga2] / agent / CMakeLists.txt
1 # Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+
2
3 if(MSVC)
4   include_external_msproject(
5     icinga2setupagent
6     ${CMAKE_CURRENT_SOURCE_DIR}/windows-setup-agent/Icinga2SetupAgent.csproj
7     TYPE FAE04EC0-301F-11D3-BF4B-00C04F79EFBC
8   )
9
10   install(
11     FILES ${CMAKE_CURRENT_SOURCE_DIR}/windows-setup-agent/bin/\${CMAKE_INSTALL_CONFIG_NAME}/Icinga2SetupAgent.exe ${CMAKE_CURRENT_SOURCE_DIR}/windows-setup-agent/bin/\${CMAKE_INSTALL_CONFIG_NAME}/Icinga2SetupAgent.exe.config
12     DESTINATION ${CMAKE_INSTALL_SBINDIR}
13   )
14 endif()