generate .pri file

This commit is contained in:
Patrick von Reth 2015-07-05 13:48:47 +02:00
parent 5857d09085
commit 6aed996b34
2 changed files with 10 additions and 0 deletions

View File

@ -18,6 +18,7 @@ include(KDEFrameworkCompilerSettings)
include(GenerateExportHeader)
include(ECMAddAppIcon)
include(ECMGeneratePriFile)
include(ECMInstallIcons)
include(ECMPackageConfigHelpers)
include(ECMSetupVersion)

View File

@ -82,6 +82,15 @@ ecm_configure_package_config_file( "${CMAKE_CURRENT_SOURCE_DIR}/LibsnoreConfig.
INSTALL_DESTINATION ${KDE_INSTALL_CMAKEPACKAGEDIR}/libsnore${SNORE_CamelCase_SUFFIX}
)
ecm_generate_pri_file(BASE_NAME Libsnore${SNORE_CamelCase_SUFFIX}
LIB_NAME snore${SNORE_SUFFIX}
DEPS "core gui widgets network"
INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR}
FILENAME_VAR pri_filename)
install(FILES ${pri_filename} DESTINATION ${ECM_MKSPECS_INSTALL_DIR})
install(TARGETS libsnore EXPORT Libsnore${SNORE_CamelCase_SUFFIX}Target ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(EXPORT Libsnore${SNORE_CamelCase_SUFFIX}Target DESTINATION ${KDE_INSTALL_CMAKEPACKAGEDIR}/libsnore${SNORE_CamelCase_SUFFIX} NAMESPACE Snore::)