-
-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Renamed exported targets and files #361
Conversation
@@ -1 +1,3 @@ | |||
include("${CMAKE_CURRENT_LIST_DIR}/QSkinnyTargets.cmake") | |||
include("${CMAKE_CURRENT_LIST_DIR}/QSkinnyTools.cmake" OPTIONAL) | |||
include("${CMAKE_CURRENT_LIST_DIR}/QSkinnyQmlExportTargets.cmake" OPTIONAL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
include all possible CMake scripts and mark them as optional if e.g. controlled by a CMake option
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Subjectively I don't think we need an additional sub directory in the CMAKE_CURRENT_BINARY_DIR
since it is already QSkinny's own build folder. It's not wrong, just not necessary...
Using
CMAKE_CURRENT_BINARY_DIR
makes us support the "QSkinny as a sub folder" scenario
98e179e
to
62b5ef1
Compare
@uwerat Besides the following weird placement this PR is ready for review/merging: <CMAKE_INSTALL_PREFIX>/bin/qskqmlexport.dll ❓ why not next to qskqmlexport.lib Is there a reason why Suggestion: All libraries in
|
PS: @uwerat is there a reason not to include e.g. next to |
PPS: we can also just put the If we remove # generated
...
# Import target "QSkinny::QSkinny" for configuration "Debug"
set_property(TARGET QSkinny::QSkinny APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
set_target_properties(QSkinny::QSkinny PROPERTIES
IMPORTED_IMPLIB_DEBUG "${_IMPORT_PREFIX}/lib/qskinny/qskinny.lib"
IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/lib/qskinny/qskinny.dll"
)
list(APPEND _cmake_import_check_targets QSkinny::QSkinny )
list(APPEND _cmake_import_check_files_for_QSkinny::QSkinny "${_IMPORT_PREFIX}/lib/qskinny/qskinny.lib" "${_IMPORT_PREFIX}/lib/qskinny/qskinny.dll" )
# Import target "QSkinny::QSkinnyQmlExport" for configuration "Debug"
set_property(TARGET QSkinny::QSkinnyQmlExport APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
set_target_properties(QSkinny::QSkinnyQmlExport PROPERTIES
IMPORTED_IMPLIB_DEBUG "${_IMPORT_PREFIX}/lib/qskqmlexport.lib"
IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBUG "QSkinny::QSkinny"
IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/bin/qskqmlexport.dll"
)
list(APPEND _cmake_import_check_targets QSkinny::QSkinnyQmlExport )
list(APPEND _cmake_import_check_files_for_QSkinny::QSkinnyQmlExport "${_IMPORT_PREFIX}/lib/qskqmlexport.lib" "${_IMPORT_PREFIX}/bin/qskqmlexport.dll" )
... |
Relates to #359
lowercase
UpperCase
Example CMake Filenames
QSkinny
TODOs
This state creates the following structure in the installation folder:
QSkinny Install Binary Directory
QSkinny Install Include Directories
QSkinny Install Library Directories
QSkinny Install CMake Directories
QSkinny Install Core Library Directory
QSkinny Install Plugin Directories
QSkinny Install Skin Directories