include add_subdirectory for STK projects

This commit is contained in:
swang251-MB
2021-09-18 13:40:34 -04:00
parent 367893bf50
commit f00e38611c
6 changed files with 56 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ option(ENABLE_ASIO "Enable ASIO API support (windows only)" ON)
option(ENABLE_DS "Enable DirectSound API support (windows only)" ON)
option(ENABLE_WASAPI "Enable Windows Audio Session API support (windows only)" ON)
option(ENABLE_CORE "Enable CoreAudio API support (mac only)" ON)
option(COMPILE_PROJECTS "Compile all the example projects" OFF)
include_directories("./include")
file(GLOB STK_SRC "./src/*.cpp") # GLOB instead of GLOB_RECURSE as the asio depends on system
@@ -97,3 +98,11 @@ endif()
# if(CMAKE_CXX_BYTE_ORDER STREQUAL LITTLE_ENDIAN)
# target_compile_definitions(stk PUBLIC __LITTLE_ENDIAN__)
# endif()
if(COMPILE_PROJECTS)
add_subdirectory(projects/examples)
add_subdirectory(projects/eguitar)
add_subdirectory(projects/demo)
add_subdirectory(projects/effects)
add_subdirectory(projects/ragamatic)
endif()