Warning, /office/calligraplan/src/workpackage/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 #project(planwork) 0002 0003 add_definitions(-DTRANSLATION_DOMAIN=\"calligraplanwork\") 0004 0005 add_subdirectory( templates ) 0006 add_subdirectory( pics ) 0007 #add_subdirectory( toolbar ) 0008 #add_subdirectory( tests ) 0009 0010 include_directories(${PLAN_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_BINARY_DIR}/) 0011 0012 0013 ########### PlanWork private library ############### 0014 0015 set(planworkfactory_LIB_SRCS 0016 factory.cpp 0017 mainwindow.cpp 0018 part.cpp 0019 view.cpp 0020 workpackage.cpp 0021 0022 taskworkpackagemodel.cpp 0023 taskworkpackageview.cpp 0024 0025 taskcompletiondialog.cpp 0026 0027 debugarea.cpp 0028 0029 ../KPlatoXmlLoader.cpp #NB 0030 ) 0031 0032 ki18n_wrap_ui(planworkfactory_LIB_SRCS 0033 taskcompletionpanel.ui 0034 ) 0035 0036 kconfig_add_kcfg_files(planworksettings_SRCS calligraplanworksettings.kcfgc) 0037 0038 add_library(planworkfactory SHARED ${planworkfactory_LIB_SRCS} ${planworksettings_SRCS}) 0039 generate_export_header(planworkfactory BASE_NAME planwork) 0040 0041 target_link_libraries(planworkfactory 0042 PUBLIC 0043 plankernel 0044 planmodels 0045 planui 0046 planprivate 0047 planmain 0048 KGantt 0049 KF5::Parts 0050 PRIVATE 0051 KF5::IconThemes 0052 ) 0053 0054 set_target_properties(planworkfactory PROPERTIES VERSION ${GENERIC_PLAN_LIB_VERSION} SOVERSION ${GENERIC_PLAN_LIB_SOVERSION} ) 0055 0056 install(TARGETS planworkfactory ${INSTALL_TARGETS_DEFAULT_ARGS}) 0057 install(FILES calligraplanworksettings.kcfg DESTINATION ${KCFG_INSTALL_DIR}) 0058 0059 0060 ########### PlanWork part ############### 0061 0062 set(planworkpart_PART_SRCS factoryinit.cpp ) 0063 0064 0065 add_library(calligraplanworkpart MODULE ${planworkpart_PART_SRCS}) 0066 if(NOT ${KF5_VERSION} VERSION_LESS "5.16.0") 0067 set(calligraplanworkpart_SERVICE_TYPES_ARGS SERVICE_TYPES kpart.desktop) 0068 endif() 0069 kcoreaddons_desktop_to_json(calligraplanworkpart planworkpart.desktop 0070 ${calligraplanworkpart_SERVICE_TYPES_ARGS} 0071 ) 0072 0073 target_link_libraries(calligraplanworkpart Qt5::Core KF5::Parts planworkfactory) 0074 0075 install(TARGETS calligraplanworkpart DESTINATION ${PLUGIN_INSTALL_DIR}) 0076 0077 0078 ########### Calligra PlanWork executable ############### 0079 0080 set(calligraplanwork_KDEINIT_SRCS main.cpp commandlineparser.cpp) 0081 0082 file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/pics/*-apps-calligraplanwork.png") 0083 ecm_add_app_icon(kdeinit_app_ICONS_SRCS ICONS ${ICONS_SRCS}) 0084 if(WIN32) 0085 set(_resourcefile "${CMAKE_CURRENT_BINARY_DIR}/kdeinit_app_ICONS_SRCS.rc") 0086 endif() 0087 0088 kf5_add_kdeinit_executable(calligraplanwork ${calligraplanwork_KDEINIT_SRCS}) 0089 0090 if (APPLE) 0091 set_target_properties(calligraplanwork PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.template) 0092 set_target_properties(calligraplanwork PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "org.calligra.plan.work") 0093 set_target_properties(calligraplanwork PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Plan Work") 0094 endif () 0095 0096 target_link_libraries( 0097 kdeinit_calligraplanwork 0098 0099 planworkfactory 0100 plankernel 0101 planmain 0102 KF5::Parts 0103 KF5::IconThemes 0104 KF5::WindowSystem 0105 KF5::DBusAddons 0106 ) 0107 0108 install(TARGETS kdeinit_calligraplanwork ${INSTALL_TARGETS_DEFAULT_ARGS}) 0109 0110 target_link_libraries( calligraplanwork kdeinit_calligraplanwork ) 0111 0112 install(TARGETS calligraplanwork ${INSTALL_TARGETS_DEFAULT_ARGS}) 0113 0114 ########### install files ############### 0115 0116 install( FILES calligraplanwork.rc calligraplanwork_readonly.rc calligraplanworkui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/calligraplanwork) 0117 install( FILES calligraplanworkrc DESTINATION ${CONFIG_INSTALL_DIR}) 0118 install( PROGRAMS org.kde.calligraplanwork.desktop DESTINATION ${XDG_APPS_INSTALL_DIR}) 0119