1 set(MISC_TARGET_NAME misc)
3 set(MISC_FILE_LIST convert.cpp
9 add_library(${MISC_TARGET_NAME}
12 set(FILE_LIST main.cpp
17 frmConflictResolution.cpp
18 frmConflictResolution.h
23 frmInvalidSSLCertificate.cpp
24 frmInvalidSSLCertificate.h
29 frmNewAccount-CardDAV2.cpp
38 list(APPEND FILE_LIST frmEditAccount.mm
41 os/osx/XestiaAddressBook.icns)
44 list(APPEND LIBRARIES ${wxWidgets_LIBRARIES}
60 list(APPEND LIBRARIES wsock32
68 list(APPEND FILE_LIST os/msw/xestiaab.rc)
69 add_executable(xestiaab WIN32
73 set_source_files_properties(os/osx/XestiaAddressBook.icns PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
74 set(MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/os/osx/Info.plist")
75 set(CMAKE_BUILD_PATH_USE_ORIGIN TRUE)
76 set(APPS "\${CMAKE_INSTALL_PREFIX}/xestiaab.app")
77 set(DIR ${CMAKE_BINARY_DIR})
79 install(CODE "include(BundleUtilities)
80 fixup_bundle(\"${APPS}\" \"\" \"\")")
83 file(GLOB DocumentationFiles ${CMAKE_SOURCE_DIR}/../docs/*.fodt)
84 set_source_files_properties(${DocumentationFiles}
85 PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
87 add_executable(xestiaab MACOSX_BUNDLE
92 install(TARGETS xestiaab
93 BUNDLE DESTINATION . COMPONENT Runtime
94 RUNTIME DESTINATION bin COMPONENT Runtime)
96 target_link_libraries(xestiaab LINK_PUBLIC
99 ${COREFOUNDATION_FRAMEWORK}
100 ${SECURITY_FRAMEWORK}
101 ${SECURITYINTERFACE_FRAMEWORK}
104 set_target_properties(xestiaab PROPERTIES
106 MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/os/osx/Info.plist)
110 COMMAND ${CMAKE_COMMAND} -D SRC=$<TARGET_BUNDLE_DIR:xestiaab>/Contents/MacOS/xestiaab
111 -D DST=$<TARGET_BUNDLE_DIR:xestiaab>/Contents/Frameworks
112 -D SFML_FRAMEWORKS_LOCATION=${SFML_FRAMEWORKS_LOCATION}
113 -P ${CMAKE_CURRENT_SOURCE_DIR}/CMakeFunctions/CopyLibraries.cmake
117 add_executable(xestiaab
122 message("${RUNTIME_OUTPUT_NAME_bitmapcode}")
124 target_include_directories(xestiaab
128 add_dependencies(xestiaab bitmapcode)
130 file(GLOB DOCUMENTATION_INSTALL_FILES "${CMAKE_SOURCE_DIR}/../docs/*")
131 foreach(ITEM ${DOCUMENTATION_INSTALL_FILES})
132 if(IS_DIRECTORY "${ITEM}")
133 list(APPEND DOCUMENTATION_DEPLOY_FILES "${ITEM}")
135 list(APPEND DOCUMENTATION_DEPLOY_DIRECTORIES "${ITEM}")