2 # Copyright (C) 2012-2015 Icinga Development Team (http://www.icinga.org)
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software Foundation
16 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
18 set(wxWidgets_CONFIGURATION mswu)
19 find_package(wxWidgets COMPONENTS core base propgrid REQUIRED)
20 include(${wxWidgets_USE_FILE})
23 set(WindowsSources icinga.rc)
25 set(WindowsSources "")
28 add_executable(icinga-studio MACOSX_BUNDLE WIN32 icinga-studio.cpp
29 forms.cpp aboutform.cpp connectform.cpp mainform.cpp
30 icinga.icns api.cpp ${WindowsSources})
32 include_directories(${Boost_INCLUDE_DIRS})
33 target_link_libraries(icinga-studio ${Boost_LIBRARIES} ${wxWidgets_LIBRARIES} base remote)
36 set_source_files_properties(icinga.icns PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
39 set_target_properties (
40 icinga-studio PROPERTIES
41 INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR}/icinga2
43 OUTPUT_NAME icinga-studio
44 MACOSX_BUNDLE_INFO_STRING "Icinga Studio"
45 MACOSX_BUNDLE_BUNDLE_NAME "Icinga Studio"
46 MACOSX_BUNDLE_GUI_IDENTIFIER "Icinga Studio"
47 MACOSX_BUNDLE_ICON_FILE icinga.icns
48 MACOSX_BUNDLE_SHORT_VERSION_STRING "${GIT_VERSION}"
49 MACOSX_BUNDLE_LONG_VERSION_STRING "${GIT_VERSION}"
50 MACOSX_BUNDLE_COPYRIGHT "(c) Icinga Development Team"
51 MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/MacOSXBundleInfo.plist.in"
55 set(InstallPath "${CMAKE_INSTALL_SBINDIR}")
57 set(InstallPath "${CMAKE_INSTALL_BINDIR}")
62 RUNTIME DESTINATION ${InstallPath}
63 BUNDLE DESTINATION ${InstallPath}