This commit is contained in:
Uwe Rathmann 2024-01-10 13:23:55 +01:00
commit 3bbed95821
6 changed files with 11 additions and 13 deletions

View File

@ -125,7 +125,6 @@ install(
FILES
${CMAKE_BINARY_DIR}/_QSkinny/${PACKAGE_NAME}Config.cmake
${CMAKE_BINARY_DIR}/_QSkinny/${PACKAGE_NAME}ConfigVersion.cmake
${QSK_CMAKE_DIR}/QskTools.cmake
DESTINATION
${PACKAGE_LOCATION}
COMPONENT

View File

@ -1 +1,3 @@
include("${CMAKE_CURRENT_LIST_DIR}/QSkinnyTargets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/QskTools.cmake" OPTIONAL)
include("${CMAKE_CURRENT_LIST_DIR}/QmlExportTargets.cmake" OPTIONAL)

View File

@ -115,11 +115,3 @@ function(qsk_add_shaders target)
PREFIX "/qskinny/shaders" ${ARGV} OUTPUTS ${outfiles} )
endfunction()
function(qsk_update_package_config_file target)
file(APPEND
${CMAKE_BINARY_DIR}/_QSkinny/QSkinnyConfig.cmake
"include(\"\${CMAKE_CURRENT_LIST_DIR}/${target}.cmake\")\n")
endfunction()

View File

@ -13,7 +13,8 @@ layout: docs
In this chapter we will write a simple QSkinny application on Linux from scratch.
As a prerequisite, a recent Qt version (>= 5.15) should be available. On debian bullseye we need to install
these packages `build-essential cmake qtbase5-dev qtbase5-private-dev qtdeclarative5-dev qtdeclarative5-private-dev libqt5svg5-dev`.
For Qt6 you need the corresponding packages.
On Debian these packages need to be installed for Qt6: `build-essential cmake
qtbase6-dev qtbase6-private-dev qtdeclarative6-dev qtdeclarative6-private-dev libqt6svg-dev qt6-shadertools`.
Then we can build and install QSkinny to `/opt/qskinny` with the following commands:

View File

@ -42,5 +42,3 @@ install(EXPORT ${PACKAGE_NAME}Targets
${PACKAGE_NAMESPACE}
DESTINATION
${PACKAGE_LOCATION})
qsk_update_package_config_file(${PACKAGE_NAME}Targets)

View File

@ -1,4 +1,10 @@
if(TARGET Qt::Svg)
add_subdirectory(svg2qvg)
qsk_update_package_config_file(QskTools)
install(
FILES
${QSK_CMAKE_DIR}/QskTools.cmake
DESTINATION
${PACKAGE_LOCATION}
COMPONENT
Devel)
endif()