mirror of
https://github.com/QuasarApp/CMake.git
synced 2025-04-26 09:44:41 +00:00
51 lines
1.6 KiB
CMake
51 lines
1.6 KiB
CMake
|
#
|
||
|
# Copyright (C) 2021-2021 QuasarApp.
|
||
|
# 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.
|
||
|
#
|
||
|
|
||
|
#
|
||
|
# This module configure main cmake module of the QuasarApp group.
|
||
|
# 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
|
||
|
#
|
||
|
# Supports Defines:
|
||
|
# * RELEASE_BUILD - will sets to true if the build type is release.
|
||
|
|
||
|
if(DEFINED PROJECT_OUT_SUPPORT)
|
||
|
return()
|
||
|
else()
|
||
|
set(PROJECT_OUT_SUPPORT 1)
|
||
|
endif()
|
||
|
|
||
|
IF(NOT CMAKE_BUILD_TYPE)
|
||
|
SET(CMAKE_BUILD_TYPE Release)
|
||
|
ENDIF(NOT CMAKE_BUILD_TYPE)
|
||
|
|
||
|
## Default Defines
|
||
|
IF(CMAKE_BUILD_TYPE MATCHES Release)
|
||
|
add_definitions(-DRELEASE_BUILD)
|
||
|
ENDIF()
|
||
|
## End DEfault defines
|
||
|
|
||
|
include(${CMAKE_CURRENT_LIST_DIR}/ccache.cmake)
|
||
|
include(${CMAKE_CURRENT_LIST_DIR}/QuasarAppCITargets.cmake)
|
||
|
include(${CMAKE_CURRENT_LIST_DIR}/QtUtils.cmake)
|
||
|
|
||
|
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})
|