diff --git a/nyquist/CMakeLists.txt b/nyquist/CMakeLists.txt index 98f015468..813c6189c 100755 --- a/nyquist/CMakeLists.txt +++ b/nyquist/CMakeLists.txt @@ -6,7 +6,7 @@ message( STATUS "========== Configuring ${TARGET} ==========" ) def_vars() -list( APPEND SOURCES +list( APPEND RUNTIME aud-do-support.lsp dspprims.lsp envelopes.lsp @@ -31,15 +31,7 @@ list( APPEND SOURCES spec-plot.lsp spectral-analysis.lsp stk.lsp - - # Fix this when reorganizing the Nyquist sources - $<$: - ${libsrc}/libnyquist/nyquist/sys/win/msvc/system.lsp - > - $<$>: - system.lsp - > - + system.lsp test.lsp velocity.lsp xlinit.lsp @@ -61,10 +53,17 @@ list( APPEND SOURCES rawwaves/sinewave.raw ) -foreach( source ${SOURCES} ) +foreach( source ${RUNTIME} ) set( src "${_SRCDIR}/${source}" ) set( dst "${_DEST}/${TARGET}/${source}" ) + # Fix this when reorganizing the Nyquist sources + if( source STREQUAL "system.lsp" ) + if( CMAKE_SYSTEM_NAME MATCHES "Windows" ) + set( src "${libsrc}/libnyquist/nyquist/sys/win/msvc/system.lsp" ) + endif() + endif() + add_custom_command( DEPENDS "${src}" @@ -76,6 +75,7 @@ foreach( source ${SOURCES} ) "${dst}" ) + list( APPEND SOURCES "${src}" ) list( APPEND OUTPUTS "${dst}" ) endforeach()