Warning, /frameworks/attica/src/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # mingw can't handle exported explicit template instantiations in a DLL 0002 if (MINGW) 0003 set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--export-all-symbols ${CMAKE_SHARED_LINKER_FLAGS}") 0004 endif (MINGW) 0005 0006 configure_file(version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/version.h) 0007 0008 add_library(KF5Attica) 0009 add_library(KF5::Attica ALIAS KF5Attica) 0010 0011 set_target_properties(KF5Attica PROPERTIES 0012 VERSION ${ATTICA_VERSION} 0013 SOVERSION ${ATTICA_SOVERSION} 0014 EXPORT_NAME "Attica" 0015 ) 0016 0017 target_sources(KF5Attica PRIVATE 0018 accountbalance.cpp 0019 accountbalanceparser.cpp 0020 achievement.cpp 0021 achievementparser.cpp 0022 buildservice.cpp 0023 buildserviceparser.cpp 0024 buildservicejob.cpp 0025 buildservicejobparser.cpp 0026 buildservicejoboutput.cpp 0027 buildservicejoboutputparser.cpp 0028 activity.cpp 0029 activityparser.cpp 0030 atticabasejob.cpp 0031 atticautils.cpp 0032 privatedata.cpp 0033 privatedataparser.cpp 0034 category.cpp 0035 categoryparser.cpp 0036 comment.cpp 0037 commentparser.cpp 0038 config.cpp 0039 configparser.cpp 0040 content.cpp 0041 contentparser.cpp 0042 deletejob.cpp 0043 distribution.cpp 0044 distributionparser.cpp 0045 downloaddescription.cpp 0046 downloaditem.cpp 0047 downloaditemparser.cpp 0048 event.cpp 0049 eventparser.cpp 0050 folder.cpp 0051 folderparser.cpp 0052 forum.cpp 0053 forumparser.cpp 0054 getjob.cpp 0055 homepageentry.cpp 0056 homepagetype.cpp 0057 homepagetypeparser.cpp 0058 icon.cpp 0059 itemjob.cpp 0060 knowledgebaseentry.cpp 0061 knowledgebaseentryparser.cpp 0062 license.cpp 0063 licenseparser.cpp 0064 listjob_inst.cpp 0065 message.cpp 0066 messageparser.cpp 0067 metadata.cpp 0068 parser.cpp 0069 person.cpp 0070 personparser.cpp 0071 platformdependent_v2.cpp 0072 postfiledata.cpp 0073 postjob.cpp 0074 project.cpp 0075 projectparser.cpp 0076 putjob.cpp 0077 remoteaccount.cpp 0078 remoteaccountparser.cpp 0079 provider.cpp 0080 providermanager.cpp 0081 publisher.cpp 0082 publisherparser.cpp 0083 publisherfield.cpp 0084 publisherfieldparser.cpp 0085 qtplatformdependent.cpp 0086 topic.cpp 0087 topicparser.cpp 0088 ) 0089 0090 ecm_qt_declare_logging_category(KF5Attica 0091 HEADER attica_debug.h 0092 IDENTIFIER ATTICA 0093 CATEGORY_NAME kf.attica 0094 OLD_CATEGORY_NAMES org.kde.attica 0095 DESCRIPTION "Attica" 0096 EXPORT ATTICA 0097 ) 0098 0099 file(GLOB TEST_FILES "*.cpp" "*.h") 0100 ecm_check_outbound_license( 0101 LICENSES LGPL-2.1-only LGPL-3.0-only 0102 TEST_NAME KF5Attica 0103 FILES ${TEST_FILES} 0104 ) 0105 0106 ecm_generate_export_header(KF5Attica 0107 BASE_NAME Attica 0108 GROUP_BASE_NAME KF 0109 VERSION ${KF_VERSION} 0110 DEPRECATED_BASE_VERSION 0 0111 DEPRECATION_VERSIONS 0.2 5.4 5.23 0112 EXCLUDE_DEPRECATED_BEFORE_AND_AT ${EXCLUDE_DEPRECATED_BEFORE_AND_AT} 0113 ) 0114 0115 target_link_libraries(KF5Attica 0116 PUBLIC 0117 Qt${QT_MAJOR_VERSION}::Core 0118 Qt${QT_MAJOR_VERSION}::Network 0119 ) 0120 target_include_directories(KF5Attica INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF}/Attica>") 0121 0122 0123 ecm_generate_headers(Attica_CamelCase_HEADERS 0124 HEADER_NAMES 0125 Activity 0126 AccountBalance 0127 Achievement 0128 Comment 0129 Config 0130 Content 0131 Category 0132 DeleteJob 0133 Distribution 0134 DownloadDescription 0135 DownloadItem 0136 Event 0137 Folder 0138 Forum 0139 GetJob 0140 HomePageEntry 0141 HomePageType 0142 Icon 0143 ItemJob 0144 KnowledgeBaseEntry 0145 ListJob 0146 License 0147 Message 0148 Metadata 0149 Person 0150 PrivateData 0151 PostJob 0152 Project 0153 PutJob 0154 RemoteAccount 0155 BuildService 0156 BuildServiceJob 0157 BuildServiceJobOutput 0158 ProviderManager 0159 Provider 0160 Publisher 0161 PublisherField 0162 Topic 0163 0164 PREFIX Attica 0165 REQUIRED_HEADERS Attica_HEADERS 0166 ) 0167 0168 set(Attica_HEADERS 0169 ${Attica_HEADERS} 0170 atticabasejob.h # TODO: rename to basejob.h, add atticabasejob.h forwarding to basejob.h for compat 0171 atticautils.h # TODO: not exported, this should probably NOT be installed at all? 0172 #interface for external platform plugins 0173 platformdependent.h 0174 platformdependent_v2.h 0175 ) 0176 0177 install(FILES ${Attica_CamelCase_HEADERS} DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF}/Attica/Attica COMPONENT Devel) 0178 0179 install(TARGETS KF5Attica 0180 EXPORT KF5AtticaTargets 0181 ${KF_INSTALL_TARGETS_DEFAULT_ARGS}) 0182 0183 install(FILES 0184 ${Attica_HEADERS} 0185 ${CMAKE_CURRENT_BINARY_DIR}/version.h 0186 ${CMAKE_CURRENT_BINARY_DIR}/attica_export.h 0187 DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF}/Attica/attica 0188 COMPONENT Devel 0189 ) 0190 0191 ecm_qt_install_logging_categories( 0192 EXPORT ATTICA 0193 FILE attica.categories 0194 DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR} 0195 ) 0196 0197 if(BUILD_QCH) 0198 ecm_add_qch( 0199 KF5Attica_QCH 0200 NAME Attica 0201 BASE_NAME KF5Attica 0202 VERSION ${KF_VERSION} 0203 ORG_DOMAIN org.kde 0204 SOURCES # using only public headers, to cover only public API 0205 ${Attica_HEADERS} 0206 MD_MAINPAGE "${CMAKE_SOURCE_DIR}/README.md" 0207 LINK_QCHS 0208 Qt5Core_QCH 0209 Qt5Network_QCH 0210 INCLUDE_DIRS 0211 ${CMAKE_CURRENT_BINARY_DIR} 0212 BLANK_MACROS 0213 ATTICA_EXPORT 0214 ATTICA_DEPRECATED 0215 ATTICA_DEPRECATED_EXPORT 0216 "ATTICA_DEPRECATED_VERSION(x, y, t)" 0217 TAGFILE_INSTALL_DESTINATION ${KDE_INSTALL_QTQCHDIR} 0218 QCH_INSTALL_DESTINATION ${KDE_INSTALL_QTQCHDIR} 0219 COMPONENT Devel 0220 ) 0221 endif() 0222 0223 include(ECMGeneratePriFile) 0224 ecm_generate_pri_file(BASE_NAME Attica LIB_NAME KF5Attica DEPS "core" FILENAME_VAR PRI_FILENAME INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR_KF}/Attica) 0225 install(FILES ${PRI_FILENAME} 0226 DESTINATION ${ECM_MKSPECS_INSTALL_DIR}) 0227 0228 0229 # Install package config file 0230 if(NOT WIN32) 0231 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/libKF5Attica.pc.cmake 0232 ${CMAKE_CURRENT_BINARY_DIR}/libKF5Attica.pc 0233 @ONLY 0234 ) 0235 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libKF5Attica.pc 0236 DESTINATION ${KDE_INSTALL_LIBDIR}/pkgconfig 0237 ) 0238 endif(NOT WIN32) 0239