Changeset View
Changeset View
Standalone View
Standalone View
src/lib/CMakeLists.txt
Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Line(s) | 99 | set(kcoreaddons_INCLUDE_DIRS | |||
---|---|---|---|---|---|
103 | ${CMAKE_CURRENT_SOURCE_DIR}/io/ | 103 | ${CMAKE_CURRENT_SOURCE_DIR}/io/ | ||
104 | ${CMAKE_CURRENT_SOURCE_DIR}/jobs/ | 104 | ${CMAKE_CURRENT_SOURCE_DIR}/jobs/ | ||
105 | ${CMAKE_CURRENT_SOURCE_DIR}/plugin/ | 105 | ${CMAKE_CURRENT_SOURCE_DIR}/plugin/ | ||
106 | ${CMAKE_CURRENT_SOURCE_DIR}/randomness/ | 106 | ${CMAKE_CURRENT_SOURCE_DIR}/randomness/ | ||
107 | ${CMAKE_CURRENT_SOURCE_DIR}/text/ | 107 | ${CMAKE_CURRENT_SOURCE_DIR}/text/ | ||
108 | ${CMAKE_CURRENT_SOURCE_DIR}/util/ | 108 | ${CMAKE_CURRENT_SOURCE_DIR}/util/ | ||
109 | ) | 109 | ) | ||
110 | 110 | | |||
111 | if (HAVE_PROCSTAT) | ||||
112 | set(kcoreaddons_INCLUDE_DIRS | ||||
113 | ${kcoreaddons_INCLUDE_DIRS} | ||||
114 | ${PROCSTAT_INCLUDE_DIR} | ||||
115 | ) | ||||
116 | endif() | ||||
117 | | ||||
111 | ecm_qt_declare_logging_category(libkcoreaddons_SRCS | 118 | ecm_qt_declare_logging_category(libkcoreaddons_SRCS | ||
112 | HEADER kcoreaddons_debug.h | 119 | HEADER kcoreaddons_debug.h | ||
113 | IDENTIFIER KCOREADDONS_DEBUG | 120 | IDENTIFIER KCOREADDONS_DEBUG | ||
114 | CATEGORY_NAME org.kde.kcoreaddons) | 121 | CATEGORY_NAME org.kde.kcoreaddons) | ||
115 | 122 | | |||
116 | add_library(KF5CoreAddons ${libkcoreaddons_SRCS}) | 123 | add_library(KF5CoreAddons ${libkcoreaddons_SRCS}) | ||
117 | generate_export_header(KF5CoreAddons BASE_NAME KCoreAddons) | 124 | generate_export_header(KF5CoreAddons BASE_NAME KCoreAddons) | ||
118 | add_library(KF5::CoreAddons ALIAS KF5CoreAddons) | 125 | add_library(KF5::CoreAddons ALIAS KF5CoreAddons) | ||
119 | 126 | | |||
120 | target_include_directories(KF5CoreAddons PUBLIC "$<BUILD_INTERFACE:${kcoreaddons_INCLUDE_DIRS}>") | 127 | target_include_directories(KF5CoreAddons PUBLIC "$<BUILD_INTERFACE:${kcoreaddons_INCLUDE_DIRS}>") | ||
121 | 128 | | |||
122 | target_link_libraries(KF5CoreAddons | 129 | target_link_libraries(KF5CoreAddons | ||
123 | PUBLIC | 130 | PUBLIC | ||
124 | Qt5::Core | 131 | Qt5::Core | ||
125 | PRIVATE | 132 | PRIVATE | ||
126 | ${kcoreaddons_OPTIONAL_LIBS} | 133 | ${kcoreaddons_OPTIONAL_LIBS} | ||
127 | ) | 134 | ) | ||
128 | 135 | | |||
129 | target_link_libraries(KF5CoreAddons PRIVATE ${CMAKE_THREAD_LIBS_INIT}) | 136 | target_link_libraries(KF5CoreAddons PRIVATE ${CMAKE_THREAD_LIBS_INIT}) | ||
130 | 137 | | |||
131 | if(WIN32) | 138 | if(WIN32) | ||
132 | target_link_libraries(KF5CoreAddons PRIVATE netapi32 userenv) | 139 | target_link_libraries(KF5CoreAddons PRIVATE netapi32 userenv) | ||
133 | endif() | 140 | endif() | ||
134 | 141 | | |||
142 | if(HAVE_PROCSTAT) | ||||
143 | target_link_libraries(KF5CoreAddons PRIVATE ${PROCSTAT_LIBRARIES}) | ||||
144 | endif() | ||||
145 | | ||||
135 | target_include_directories(KF5CoreAddons INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/KCoreAddons>" ) | 146 | target_include_directories(KF5CoreAddons INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/KCoreAddons>" ) | ||
136 | 147 | | |||
137 | target_compile_definitions(KF5CoreAddons INTERFACE "$<INSTALL_INTERFACE:KCOREADDONS_LIB>") | 148 | target_compile_definitions(KF5CoreAddons INTERFACE "$<INSTALL_INTERFACE:KCOREADDONS_LIB>") | ||
138 | 149 | | |||
139 | set_target_properties(KF5CoreAddons PROPERTIES VERSION ${KCOREADDONS_VERSION_STRING} | 150 | set_target_properties(KF5CoreAddons PROPERTIES VERSION ${KCOREADDONS_VERSION_STRING} | ||
140 | SOVERSION ${KCOREADDONS_SOVERSION} | 151 | SOVERSION ${KCOREADDONS_SOVERSION} | ||
141 | EXPORT_NAME CoreAddons | 152 | EXPORT_NAME CoreAddons | ||
142 | ) | 153 | ) | ||
▲ Show 20 Lines • Show All 152 Lines • Show Last 20 Lines |