diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c9b8cad..7828ada 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,3 +59,21 @@ if(DEMO_BUILD_TESTS) ) add_test(NAME SynthEngineTest COMMAND test_synth) endif() + +option(DEMO_BUILD_TOOLS "Build tools" OFF) +if(DEMO_BUILD_TOOLS) + add_executable(spectool + tools/spectool.cpp + src/platform.cpp + src/audio/audio.cpp + src/audio/fdct.cpp + src/audio/idct.cpp + src/audio/window.cpp + src/audio/synth.cpp + ) + target_include_directories(spectool PRIVATE + src + third_party + ) + target_link_libraries(spectool PRIVATE glfw) +endif() |
