Warning, /frameworks/frameworkintegration/src/kstyle/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # create a Config.cmake and a ConfigVersion.cmake file and install them 0002 set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF5Style") 0003 0004 add_library(KF5Style kstyle.cpp) 0005 generate_export_header(KF5Style BASE_NAME KStyle) 0006 add_library(KF5::Style ALIAS KF5Style) 0007 0008 target_include_directories(KF5Style 0009 INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF}/FrameworkIntegration>;$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF}/KStyle>") 0010 0011 target_link_libraries(KF5Style 0012 PUBLIC 0013 Qt${QT_MAJOR_VERSION}::Widgets 0014 PRIVATE 0015 KF5::ConfigWidgets 0016 KF5::IconThemes 0017 ) 0018 0019 set_target_properties(KF5Style PROPERTIES VERSION ${FRAMEWORKINTEGRATION_VERSION} 0020 SOVERSION ${FRAMEWORKINTEGRATION_SOVERSION} 0021 EXPORT_NAME Style 0022 ) 0023 0024 ecm_generate_headers(KStyle_HEADERS 0025 HEADER_NAMES 0026 KStyle 0027 REQUIRED_HEADERS KStyle_HEADERS 0028 ) 0029 0030 install(TARGETS KF5Style 0031 EXPORT KF5FrameworkIntegrationTargets 0032 ${KF_INSTALL_TARGETS_DEFAULT_ARGS}) 0033 0034 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kstyle_export.h 0035 ${KStyle_HEADERS} 0036 DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF}/KStyle 0037 COMPONENT Devel) 0038