Skip to content

Commit

Permalink
renamed exported targets and files
Browse files Browse the repository at this point in the history
  • Loading branch information
vrcomputing committed Jan 10, 2024
1 parent 1c23ed9 commit 62b5ef1
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ qskinny.pro.user
html
tags
.vscode
.cache
compile_commands.json
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ qsk_setup_options()
include(GNUInstallDirs)

# loading helper macros
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
list(APPEND CMAKE_MODULE_PATH ${QSK_CMAKE_DIR})

include("QskConfigMacros")
include("QskFindMacros")
Expand All @@ -110,21 +110,21 @@ include(CMakePackageConfigHelpers)

# write QSkinnyConfigVersion.cmake file for cmake import
write_basic_package_version_file(
${CMAKE_BINARY_DIR}/_QSkinny/${PACKAGE_NAME}ConfigVersion.cmake
${CMAKE_CURRENT_BINARY_DIR}/${PACKAGE_NAME}ConfigVersion.cmake
VERSION ${PACKAGE_VERSION}
COMPATIBILITY AnyNewerVersion)

# Copy QSkinnyConfig.cmake to build dir
configure_file(${QSK_CMAKE_DIR}/${PACKAGE_NAME}Config.cmake
${CMAKE_BINARY_DIR}/_QSkinny/${PACKAGE_NAME}Config.cmake
${CMAKE_CURRENT_BINARY_DIR}/${PACKAGE_NAME}Config.cmake
COPYONLY)

# install QSkinnyConfig.cmake and QSkinnyConfigVersion.cmake
# and QskTools.cmake file to lib/cmake/QSkinny directory
# file to lib/cmake/QSkinny directory
install(
FILES
${CMAKE_BINARY_DIR}/_QSkinny/${PACKAGE_NAME}Config.cmake
${CMAKE_BINARY_DIR}/_QSkinny/${PACKAGE_NAME}ConfigVersion.cmake
${CMAKE_CURRENT_BINARY_DIR}/${PACKAGE_NAME}Config.cmake
${CMAKE_CURRENT_BINARY_DIR}/${PACKAGE_NAME}ConfigVersion.cmake
DESTINATION
${PACKAGE_LOCATION}
COMPONENT
Expand Down
4 changes: 2 additions & 2 deletions cmake/QSkinnyConfig.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +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)
include("${CMAKE_CURRENT_LIST_DIR}/QSkinnyTools.cmake" OPTIONAL)
include("${CMAKE_CURRENT_LIST_DIR}/QSkinnyQmlExportTargets.cmake" OPTIONAL)
File renamed without changes.
17 changes: 14 additions & 3 deletions qmlexport/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,18 @@
# SPDX-License-Identifier: BSD-3-Clause
############################################################################

set(HEADERS QskQmlGlobal.h QskShortcutQml.h QskLayoutQml.h QskMainQml.h QskQml.h)
set(SOURCES QskShortcutQml.cpp QskLayoutQml.cpp QskMainQml.cpp QskQml.cpp)
set(HEADERS
QskQmlGlobal.h
QskShortcutQml.h
QskLayoutQml.h
QskMainQml.h
QskQml.h)

set(SOURCES
QskShortcutQml.cpp
QskLayoutQml.cpp
QskMainQml.cpp
QskQml.cpp)

set(target qskqmlexport)
qsk_add_library(${target} SHARED ${SOURCES} ${HEADERS})
Expand All @@ -22,7 +32,8 @@ if(BUILD_QSKDLL)
endif()

# packaging
set(PACKAGE_NAME QmlExport)
set(PACKAGE_NAME QSkinnyQmlExport)
set(QSKQE_INSTALL_HEADERS "${CMAKE_INSTALL_INCLUDEDIR}/${target}")

set_target_properties(${target} PROPERTIES FOLDER libs)
set_target_properties(${target} PROPERTIES EXPORT_NAME ${PACKAGE_NAME})
Expand Down
2 changes: 1 addition & 1 deletion tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ if(TARGET Qt::Svg)
add_subdirectory(svg2qvg)
install(
FILES
${QSK_CMAKE_DIR}/QskTools.cmake
${QSK_CMAKE_DIR}/QSkinnyTools.cmake
DESTINATION
${PACKAGE_LOCATION}
COMPONENT
Expand Down

0 comments on commit 62b5ef1

Please sign in to comment.