CMake/QuasarApp.cmake

52 lines
1.7 KiB
CMake
Raw Normal View History

2021-04-20 11:02:05 +03:00
#
2022-01-16 14:11:49 +03:00
# Copyright (C) 2021-2022 QuasarApp.
2021-04-20 11:02:05 +03:00
# Distributed under the MIT software license, see the accompanying
# Everyone is permitted to copy and distribute verbatim copies
# of this license document, but changing it is not allowed.
#
#
2021-04-20 11:05:08 +03:00
# This is main cmake module of the QuasarApp group.
2021-04-20 11:02:05 +03:00
# All project of the QuasarApp group ust be use this module in own cmake rro directory.
# Example
# include(CMake/QuasarApp.cmake)
#
# This module do:
# * Print debug information
# * Prepare build type, By default it is Release mode
# * include ccache for project
# * Add default QussarApp definition into code
# * Initialise all default targets. See the QuasarAppCITargets module
# * Initialise all qtUtils. See the QtUtils module
2021-04-20 11:04:38 +03:00
# * Initialise all crossplatform toolchains. See the crossplatform module
2021-04-20 11:02:05 +03:00
#
# Supports Defines:
# * RELEASE_BUILD - will sets to true if the build type is release.
2021-04-20 11:04:38 +03:00
if(DEFINED QUASARAPP_CMAKE_MODULE)
2021-04-20 11:02:05 +03:00
return()
else()
2021-04-20 11:04:38 +03:00
set(QUASARAPP_CMAKE_MODULE 1)
2021-04-20 11:02:05 +03:00
endif()
IF(NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE Release)
ENDIF(NOT CMAKE_BUILD_TYPE)
## Default Defines
## End DEfault defines
include(${CMAKE_CURRENT_LIST_DIR}/ccache.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/QuasarAppCITargets.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/QtUtils.cmake)
2021-04-20 11:04:38 +03:00
include(${CMAKE_CURRENT_LIST_DIR}/crossplatform/crossplatform.cmake)
2021-04-20 11:02:05 +03:00
message(STATUS "buid type " ${CMAKE_BUILD_TYPE})
message(STATUS "Project " ${PROJECT_NAME})
message(STATUS "c compiler " ${CMAKE_C_COMPILER})
message(STATUS "cxx compiler " ${CMAKE_CXX_COMPILER})
message(STATUS "build shared " ${BUILD_SHARED_LIBS})
message(STATUS "qmake exec " ${QT_QMAKE_EXECUTABLE})
2022-01-22 16:52:55 +03:00
message(STATUS "tool chain " ${CMAKE_TOOLCHAIN_FILE})