mirror of
https://github.com/thestk/stk
synced 2026-01-11 12:01:52 +00:00
include add_subdirectory for STK projects
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user