1
0
Fork 0
mirror of https://github.com/gwm17/Specter.git synced 2024-11-22 18:28:52 -05:00

Make building the template SpecProject optional (off by default) set by CMake option BUILD_SPECPROJECT

This commit is contained in:
Gordon McCann 2022-11-07 18:17:45 -05:00
parent d34f5d676b
commit 6bf8701c31

View File

@ -11,8 +11,12 @@ endif()
project(Specter) project(Specter)
option(BUILD_SPECPROJECT "Build SpecProject template" Off)
set(SPECTER_BINARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/bin) set(SPECTER_BINARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/bin)
set(SPECTER_LIBRARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/lib) set(SPECTER_LIBRARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/lib)
add_subdirectory(Specter) add_subdirectory(Specter)
if(BUILD_SPECPROJECT)
add_subdirectory(SpecProject) add_subdirectory(SpecProject)
endif()