mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-01 16:39:30 +02:00
Add cmake build of mod-null
This commit is contained in:
parent
33b5d151ac
commit
04f0c2d9ee
45
cmake-proxies/mod-null/CMakeLists.txt
Normal file
45
cmake-proxies/mod-null/CMakeLists.txt
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
|
||||||
|
set( TARGET mod-null )
|
||||||
|
set( TARGET_ROOT "${libsrc}/${TARGET}" )
|
||||||
|
|
||||||
|
message( STATUS "========== Configuring ${TARGET} ==========" )
|
||||||
|
|
||||||
|
def_vars()
|
||||||
|
|
||||||
|
add_library( ${TARGET} MODULE )
|
||||||
|
|
||||||
|
list( APPEND SOURCES
|
||||||
|
PRIVATE
|
||||||
|
${TARGET_ROOT}/ModNullCallback.cpp
|
||||||
|
${TARGET_ROOT}/ModNullCallback.h
|
||||||
|
)
|
||||||
|
|
||||||
|
list( APPEND INCLUDES
|
||||||
|
PUBLIC
|
||||||
|
${TARGET_ROOT}
|
||||||
|
)
|
||||||
|
|
||||||
|
list( APPEND DEFINES
|
||||||
|
PRIVATE
|
||||||
|
wxDEBUG_LEVEL=0
|
||||||
|
)
|
||||||
|
|
||||||
|
list( APPEND LIBRARIES
|
||||||
|
PRIVATE
|
||||||
|
Audacity
|
||||||
|
wxWidgets
|
||||||
|
)
|
||||||
|
|
||||||
|
set_target_property_all( ${TARGET} LIBRARY_OUTPUT_DIRECTORY "${_DEST}/modules" )
|
||||||
|
set_target_properties( ${TARGET}
|
||||||
|
PROPERTIES
|
||||||
|
PREFIX ""
|
||||||
|
FOLDER "lib-src"
|
||||||
|
)
|
||||||
|
|
||||||
|
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||||
|
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||||
|
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||||
|
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||||
|
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user