Moved the Config.h file generation in the appropriated CMake script

This commit is contained in:
redtide 2023-05-20 15:36:25 +02:00
parent 09e81771bf
commit 395d4ca185
No known key found for this signature in database
2 changed files with 5 additions and 4 deletions

View file

@ -129,10 +129,6 @@ if(PROJECT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
set(PROJECT_IS_MAIN TRUE)
endif()
# Generate Config.h
configure_file("${PROJECT_SOURCE_DIR}/src/Config.h.in"
"${PROJECT_SOURCE_DIR}/src/sfizz/Config.h" @ONLY)
# Don't show build information when building a different project
function(show_build_info_if_needed)
if(PROJECT_IS_MAIN)

View file

@ -11,6 +11,11 @@ set(FAUST_FILES
sfizz/effects/dsp/fverb.dsp)
source_group("Faust Files" FILES ${FAUST_FILES})
# Generate Config.h
# Currently required only to customize the MIDI_CC_COUNT
configure_file("${PROJECT_SOURCE_DIR}/src/Config.h.in"
"${PROJECT_SOURCE_DIR}/src/sfizz/Config.h" @ONLY)
set(SFIZZ_HEADERS
sfizz/ADSREnvelope.h
sfizz/AudioBuffer.h