-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmodule_extra.cmake
More file actions
18 lines (17 loc) · 812 Bytes
/
module_extra.cmake
File metadata and controls
18 lines (17 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Add sources to target
if(NAP_BUILD_CONTEXT MATCHES "source")
if (NAP_AUDIOFILE_SUPPORT)
# Add compile definition to enable audio file support
target_compile_definitions(${PROJECT_NAME} PRIVATE NAP_AUDIOFILE_SUPPORT)
else()
# Filter out sources for audio file functionality
set(AUDIO_FILE_SUPPORT_FILTER ".*audiofile.*")
endif()
add_source_dir("core" "src/audio/core")
add_source_dir("node" "src/audio/node" ${AUDIO_FILE_SUPPORT_FILTER})
add_source_dir("object" "src/audio/object" ${AUDIO_FILE_SUPPORT_FILTER})
add_source_dir("component" "src/audio/component")
add_source_dir("service" "src/audio/service")
add_source_dir("resource" "src/audio/resource" ${AUDIO_FILE_SUPPORT_FILTER})
add_source_dir("utility" "src/audio/utility")
endif()