mirror of
https://github.com/QuasarApp/ViewSolutions.git
synced 2025-04-26 09:44:39 +00:00
30 lines
685 B
CMake
30 lines
685 B
CMake
#
|
|
# Copyright (C) 2018-2021 QuasarApp.
|
|
# Distributed under the lgplv3 software license, see the accompanying
|
|
# Everyone is permitted to copy and distribute verbatim copies
|
|
# of this license document, but changing it is not allowed.
|
|
#
|
|
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
project(ViewSolutionsMain)
|
|
if(TARGET ${PROJECT_NAME})
|
|
message("The ${PROJECT_NAME} arledy included in main Project")
|
|
return()
|
|
endif()
|
|
|
|
include(ViewSolutions/CMake/ccache.cmake)
|
|
|
|
add_subdirectory(ViewSolutions)
|
|
|
|
if ( NOT DEFINED DISABLE_EXAMPLES )
|
|
set(DISABLE_EXAMPLES OFF)
|
|
endif()
|
|
|
|
if ( NOT DISABLE_EXAMPLES )
|
|
message("DISABLE_EXAMPLES = ${DISABLE_EXAMPLES}")
|
|
add_subdirectory(Examples)
|
|
endif()
|
|
|
|
|