File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ project(arduino_helix)
7
7
## add_compile_options(-Wall -Wextra )
8
8
set (CMAKE_CXX_STANDARD 17 )
9
9
10
+ option (MP3_EXAMPLES "build examples" OFF )
11
+
10
12
file (GLOB_RECURSE SRC_LIST_C CONFIGURE_DEPENDS "${PROJECT_SOURCE_DIR} /src/*.c" )
11
13
file (GLOB_RECURSE SRC_LIST_CPP CONFIGURE_DEPENDS "${PROJECT_SOURCE_DIR} /src/*.cpp" )
12
14
@@ -20,5 +22,7 @@ target_compile_options(arduino_helix PRIVATE -DUSE_DEFAULT_STDLIB)
20
22
target_include_directories (arduino_helix PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} /src ${CMAKE_CURRENT_SOURCE_DIR} /src/libhelix-mp3 ${CMAKE_CURRENT_SOURCE_DIR} /src/libhelix-aac )
21
23
22
24
# build examples
23
- add_subdirectory ( "${CMAKE_CURRENT_SOURCE_DIR} /examples/output_mp3" )
24
- add_subdirectory ( "${CMAKE_CURRENT_SOURCE_DIR} /examples/output_aac" )
25
+ if (MP3_EXAMPLES )
26
+ add_subdirectory ( "${CMAKE_CURRENT_SOURCE_DIR} /examples/output_mp3" )
27
+ add_subdirectory ( "${CMAKE_CURRENT_SOURCE_DIR} /examples/output_aac" )
28
+ endif ()
You can’t perform that action at this time.
0 commit comments