Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Replace old build system with CMake build system
[xestiaab/.git] / source / CMakeFunctions / Application.cmake
1 set(MISC_TARGET_NAME misc)
3 set(MISC_FILE_LIST convert.cpp
4                    convert.h
5                    debug.h
6                    enums.h
7                    version.h)
9 add_library(${MISC_TARGET_NAME}
10             ${MISC_FILE_LIST})
12 set(FILE_LIST main.cpp
13               AppXestiaAddrBk.cpp
14               AppXestiaAddrBk.h
15               frmAbout.cpp
16               frmAbout.h
17               frmConflictResolution.cpp
18               frmConflictResolution.h
19               frmContact.cpp
20               frmContact.h
21               frmEditAccount.cpp
22               frmEditAccount.h
23               frmInvalidSSLCertificate.cpp
24               frmInvalidSSLCertificate.h
25               frmMain.cpp
26               frmMain.h
27               frmNewAccount.cpp
28               frmNewAccount.h
29               frmNewAccount-CardDAV2.cpp
30               frmPreferences.cpp
31               frmPreferences.h
32               frmSSLCertificate.cpp
33               frmSSLCertificate.h
34               frmUpdate.cpp
35               frmUpdate.h)
37 if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
38     list(APPEND ${FILE_LIST} frmEditAccount.mm
39                              frmNewAccount.mm)
40 endif()
42 add_executable(xestiaab
43     ${FILE_LIST})
45 message("${RUNTIME_OUTPUT_NAME_bitmapcode}")
47 target_include_directories(xestiaab
48     PUBLIC
49     ".")
50     
51 add_dependencies(xestiaab bitmapcode)
52     
53 target_link_libraries(xestiaab
54     LINK_PUBLIC
55     ${wxWidgets_LIBRARIES}
56     ${LIBXML2_LIBRARY}
57     sfml-audio
58     CURL::libcurl
59     actmgr
60     carddav2
61     common
62     contacteditor
63     export
64     import
65     misc
66     search
67     vcard
68     widgets)
70 file(GLOB DOCUMENTATION_INSTALL_FILES "${CMAKE_SOURCE_DIR}/../docs/*")
71 foreach(ITEM ${DOCUMENTATION_INSTALL_FILES})
72     if(IS_DIRECTORY "${ITEM}")
73         list(APPEND DOCUMENTATION_DEPLOY_FILES "${ITEM}")
74     else()
75         list(APPEND DOCUMENTATION_DEPLOY_DIRECTORIES "${ITEM}")
76     endif()
77 endforeach()
79 install(TARGETS xestiaab RUNTIME DESTINATION bin)
80 install(TARGETS odthelpbrowser RUNTIME DESTINATION bin)
81 install(FILES ${CMAKE_SOURCE_DIR}/xestiaab.1 DESTINATION share/man/man1)
82 install(FILES ${DOCUMENTATION_DEPLOY_FILES} DESTINATION share/doc/xestiaab)
83 install(FILES ${DOCUMENTATION_DEPLOY_DIRECTORIES} DESTINATION share/doc/xestiaab)
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy