7 list(APPEND FILE_LIST os/osx/XestiaCalendar.icns)
10 list(APPEND LIBRARIES ${wxWidgets_LIBRARIES}
27 list(APPEND LIBRARIES wsock32
32 list(APPEND FILE_LIST os/msw/xestiacalendar.rc)
34 add_executable(xestiacalendar WIN32
36 target_link_libraries(xestiacalendar LINK_PUBLIC
40 set_source_files_properties(os/osx/XestiaCalendar.icns PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
41 set(MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/os/osx/Info.plist")
42 set(CMAKE_BUILD_PATH_USE_ORIGIN TRUE)
43 set(APPS "\${CMAKE_INSTALL_PREFIX}/xestiacalendar.app")
44 set(DIR ${CMAKE_BINARY_DIR})
46 install(CODE "include(BundleUtilities)
47 fixup_bundle(\"${APPS}\" \"\" \"\")")
50 file(GLOB DocumentationFiles ${CMAKE_SOURCE_DIR}/../docs/*.fodt)
51 set_source_files_properties(${DocumentationFiles}
52 PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
54 add_executable(xestiacalendar MACOSX_BUNDLE
59 install(TARGETS xestiacalendar
60 BUNDLE DESTINATION . COMPONENT Runtime
61 RUNTIME DESTINATION bin COMPONENT Runtime)
63 target_link_libraries(xestiacalendar LINK_PUBLIC
66 ${COREFOUNDATION_FRAMEWORK}
68 ${SECURITYINTERFACE_FRAMEWORK}
71 set_target_properties(xestiacalendar PROPERTIES
73 MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/os/osx/Info.plist)
77 COMMAND ${CMAKE_COMMAND} -D SRC=$<TARGET_BUNDLE_DIR:xestiacalendar>/Contents/MacOS/xestiacalendar
78 -D DST=$<TARGET_BUNDLE_DIR:xestiacalendar>/Contents/Frameworks
79 -D SFML_FRAMEWORKS_LOCATION=${SFML_FRAMEWORKS_LOCATION}
80 -P ${CMAKE_CURRENT_SOURCE_DIR}/CMakeFunctions/CopyLibraries.cmake
84 add_executable(xestiacalendar
87 target_link_libraries(xestiacalendar LINK_PUBLIC
92 message("${RUNTIME_OUTPUT_NAME_bitmapcode}")
94 target_include_directories(xestiacalendar
98 add_dependencies(xestiacalendar bitmapcode)
100 file(GLOB DOCUMENTATION_INSTALL_FILES "${CMAKE_SOURCE_DIR}/../docs/*")
101 foreach(ITEM ${DOCUMENTATION_INSTALL_FILES})
102 if(IS_DIRECTORY "${ITEM}")
103 list(APPEND DOCUMENTATION_DEPLOY_FILES "${ITEM}")
105 list(APPEND DOCUMENTATION_DEPLOY_DIRECTORIES "${ITEM}")