1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-05 08:33:53 +01:00

Add mod-nyq-bench target

And define a few more convenience variables.
This commit is contained in:
Leland Lucius
2020-02-05 18:45:05 -06:00
parent ddd1e5e14f
commit 2df9d3528b
5 changed files with 63 additions and 7 deletions

View File

@@ -0,0 +1,43 @@
set( TARGET mod-nyq-bench )
set( TARGET_ROOT "${libsrc}/${TARGET}" )
message( STATUS "========== Configuring ${TARGET} ==========" )
def_vars()
add_library( ${TARGET} MODULE )
list( APPEND SOURCES
PRIVATE
${TARGET_ROOT}/NyqBench.cpp
${TARGET_ROOT}/NyqBench.h
)
list( APPEND INCLUDES
PUBLIC
${TARGET_ROOT}
)
list( APPEND LIBRARIES
PRIVATE
Audacity
libnyquist
portaudio-v19
wxwidgets
)
set_target_properties( ${TARGET}
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY_DEBUG "${_MODDIR}"
LIBRARY_OUTPUT_DIRECTORY_RELEASE "${_MODDIR}"
LIBRARY_OUTPUT_DIRECTORY "${_MODDIR}"
PREFIX ""
FOLDER "lib-src"
)
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
target_sources( ${TARGET} PRIVATE ${SOURCES} )
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )