2022-06-20 21:10:10 -04:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
|
|
|
|
2022-10-01 09:54:29 -04:00
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
2022-06-20 21:10:10 -04:00
|
|
|
|
|
|
|
if(NOT CMAKE_BUILD_TYPE STREQUAL "Release")
|
|
|
|
set(CMAKE_BUILD_TYPE "Debug")
|
|
|
|
message("Building debug")
|
|
|
|
else()
|
|
|
|
message("Building release")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
project(Specter)
|
|
|
|
|
2022-11-07 18:17:45 -05:00
|
|
|
option(BUILD_SPECPROJECT "Build SpecProject template" Off)
|
|
|
|
|
2022-06-20 21:10:10 -04:00
|
|
|
set(SPECTER_BINARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/bin)
|
|
|
|
set(SPECTER_LIBRARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/lib)
|
|
|
|
|
|
|
|
add_subdirectory(Specter)
|
2022-11-07 18:17:45 -05:00
|
|
|
if(BUILD_SPECPROJECT)
|
|
|
|
add_subdirectory(SpecProject)
|
|
|
|
endif()
|