Changeset View
Changeset View
Standalone View
Standalone View
processcore/CMakeLists.txt
Show All 30 Lines | 27 | PRIVATE | |||
---|---|---|---|---|---|
31 | ${ZLIB_LIBRARIES} | 31 | ${ZLIB_LIBRARIES} | ||
32 | ) | 32 | ) | ||
33 | 33 | | |||
34 | if( ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD" ) | 34 | if( ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD" ) | ||
35 | message(STATUS "Adding kvm library on NetBSD") | 35 | message(STATUS "Adding kvm library on NetBSD") | ||
36 | target_link_libraries(processcore kvm) | 36 | target_link_libraries(processcore kvm) | ||
37 | endif() | 37 | endif() | ||
38 | 38 | | |||
39 | if(NOT HAVE_CLOCK_GETTIME_C) | ||||
40 | target_link_libraries(processcore PRIVATE rt) | ||||
41 | endif() | ||||
42 | | ||||
39 | target_include_directories(processcore | 43 | target_include_directories(processcore | ||
40 | PUBLIC | 44 | PUBLIC | ||
41 | "$<BUILD_INTERFACE:${libksysguard_SOURCE_DIR}>" | 45 | "$<BUILD_INTERFACE:${libksysguard_SOURCE_DIR}>" | ||
42 | "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR}/ksysguard>" | 46 | "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR}/ksysguard>" | ||
43 | ) | 47 | ) | ||
44 | set_target_properties(processcore PROPERTIES VERSION ${KSYSGUARD_VERSION_STRING} SOVERSION ${KSYSGUARD_SOVERSION} EXPORT_NAME ProcessCore) | 48 | set_target_properties(processcore PROPERTIES VERSION ${KSYSGUARD_VERSION_STRING} SOVERSION ${KSYSGUARD_SOVERSION} EXPORT_NAME ProcessCore) | ||
45 | install(TARGETS processcore EXPORT libksysguardLibraryTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) | 49 | install(TARGETS processcore EXPORT libksysguardLibraryTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) | ||
46 | 50 | | |||
Show All 32 Lines |