2022-12-18 14:19:04 +00:00
|
|
|
################################################################################
|
|
|
|
## Project for working with OpenGL and Qt6 widgets ##
|
2023-01-02 03:26:58 +00:00
|
|
|
## ##
|
|
|
|
## Author: Shaun Reed | Contact: shaunrd0@gmail.com | URL: www.shaunreed.com ##
|
|
|
|
## All Content (c) 2023 Shaun Reed, all rights reserved ##
|
2022-12-18 14:19:04 +00:00
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# Qtk Library
|
|
|
|
add_subdirectory(qtk)
|
|
|
|
|
|
|
|
# Qtk Application
|
|
|
|
if (QTK_BUILD_GUI)
|
|
|
|
add_subdirectory(app)
|
|
|
|
endif()
|
|
|
|
|
2023-01-03 03:18:53 +00:00
|
|
|
write_basic_package_version_file(
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/QtkConfigVersion.cmake"
|
|
|
|
COMPATIBILITY AnyNewerVersion
|
|
|
|
)
|
|
|
|
configure_package_config_file(
|
|
|
|
"${CMAKE_SOURCE_DIR}/cmake/templates/Config.cmake.in"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/QtkConfig.cmake"
|
|
|
|
INSTALL_DESTINATION lib/cmake/Qtk
|
|
|
|
)
|
|
|
|
install(
|
|
|
|
FILES
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/QtkConfig.cmake"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/QtkConfigVersion.cmake"
|
|
|
|
DESTINATION lib/cmake/Qtk
|
|
|
|
)
|
|
|
|
install(
|
|
|
|
EXPORT qtk-export
|
2022-12-18 14:19:04 +00:00
|
|
|
FILE QtkTargets.cmake
|
|
|
|
NAMESPACE Qtk::
|
2023-01-03 03:18:53 +00:00
|
|
|
DESTINATION lib/cmake/Qtk
|
2022-12-18 14:19:04 +00:00
|
|
|
)
|
2023-01-03 03:18:53 +00:00
|
|
|
|
|
|
|
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
|
|
|
|
set(CPACK_PACKAGE_VERSION_MAJOR "${PROJECT_VERSION_MAJOR}")
|
|
|
|
set(CPACK_PACKAGE_VERSION_MINOR "${PROJECT_VERSION_MINOR}")
|
2023-01-14 21:33:06 +00:00
|
|
|
set(CPACK_PACKAGE_VENDOR "Shaun Reed")
|
|
|
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Qt OpenGL 3D graphics library.")
|
|
|
|
set(CPACK_PACKAGE_HOMEPAGE_URL "https://github.com/shaunrd0/qtk")
|
2023-01-15 00:01:34 +00:00
|
|
|
set(CPACK_SOURCE_IGNORE_FILES build;install;\.git;\.github;\.idea)
|
|
|
|
set(CPACK_PACKAGE_DIRECTORY packages/)
|
|
|
|
if(WIN32)
|
|
|
|
set(CPACK_SOURCE_GENERATOR ZIP)
|
|
|
|
else()
|
|
|
|
set(CPACK_SOURCE_GENERATOR TGZ)
|
|
|
|
endif()
|
2023-01-03 03:18:53 +00:00
|
|
|
include(CPack)
|