mirror of
https://github.com/gwm17/Specter.git
synced 2024-11-22 18:28:52 -05:00
22 lines
503 B
CMake
22 lines
503 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
if(NOT CMAKE_BUILD_TYPE STREQUAL "Release")
|
|
set(CMAKE_BUILD_TYPE "Debug")
|
|
message("Building debug")
|
|
else()
|
|
message("Building release")
|
|
endif()
|
|
|
|
project(Specter)
|
|
|
|
option(BUILD_SPECPROJECT "Build SpecProject template" Off)
|
|
|
|
set(SPECTER_BINARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/bin)
|
|
set(SPECTER_LIBRARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/lib)
|
|
|
|
add_subdirectory(Specter)
|
|
if(BUILD_SPECPROJECT)
|
|
add_subdirectory(SpecProject)
|
|
endif() |