mirror of
https://github.com/QuasarApp/CMake.git
synced 2025-04-27 10:14:40 +00:00
27 lines
934 B
CMake
27 lines
934 B
CMake
#
|
|
# Copyright (C) 2018-2019 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.
|
|
#
|
|
|
|
IF(NOT CMAKE_BUILD_TYPE)
|
|
SET(CMAKE_BUILD_TYPE Release)
|
|
ENDIF(NOT CMAKE_BUILD_TYPE)
|
|
|
|
SET(LIB_OUTPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/build/${CMAKE_BUILD_TYPE})
|
|
|
|
message("${} LIB_OUTPUT_DIR = ${LIB_OUTPUT_DIR}")
|
|
|
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${LIB_OUTPUT_DIR}/lib)
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${LIB_OUTPUT_DIR}/lib)
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LIB_OUTPUT_DIR}/bin)
|
|
|
|
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})
|