set(MISC_TARGET_NAME misc) set(MISC_FILE_LIST convert.cpp convert.h debug.h enums.h version.h) add_library(${MISC_TARGET_NAME} ${MISC_FILE_LIST}) set(FILE_LIST main.cpp AppXestiaAddrBk.cpp AppXestiaAddrBk.h frmAbout.cpp frmAbout.h frmConflictResolution.cpp frmConflictResolution.h frmContact.cpp frmContact.h frmEditAccount.cpp frmEditAccount.h frmInvalidSSLCertificate.cpp frmInvalidSSLCertificate.h frmMain.cpp frmMain.h frmNewAccount.cpp frmNewAccount.h frmNewAccount-CardDAV2.cpp frmPreferences.cpp frmPreferences.h frmSSLCertificate.cpp frmSSLCertificate.h frmUpdate.cpp frmUpdate.h) if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") list(APPEND ${FILE_LIST} frmEditAccount.mm frmNewAccount.mm) endif() add_executable(xestiaab ${FILE_LIST}) message("${RUNTIME_OUTPUT_NAME_bitmapcode}") target_include_directories(xestiaab PUBLIC ".") add_dependencies(xestiaab bitmapcode) target_link_libraries(xestiaab LINK_PUBLIC ${wxWidgets_LIBRARIES} ${LIBXML2_LIBRARY} sfml-audio CURL::libcurl actmgr carddav2 common contacteditor export import misc search vcard widgets) file(GLOB DOCUMENTATION_INSTALL_FILES "${CMAKE_SOURCE_DIR}/../docs/*") foreach(ITEM ${DOCUMENTATION_INSTALL_FILES}) if(IS_DIRECTORY "${ITEM}") list(APPEND DOCUMENTATION_DEPLOY_FILES "${ITEM}") else() list(APPEND DOCUMENTATION_DEPLOY_DIRECTORIES "${ITEM}") endif() endforeach() install(TARGETS xestiaab RUNTIME DESTINATION bin) install(TARGETS odthelpbrowser RUNTIME DESTINATION bin) install(FILES ${CMAKE_SOURCE_DIR}/xestiaab.1 DESTINATION share/man/man1) install(FILES ${DOCUMENTATION_DEPLOY_FILES} DESTINATION share/doc/xestiaab) install(FILES ${DOCUMENTATION_DEPLOY_DIRECTORIES} DESTINATION share/doc/xestiaab)