mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 23:59:41 +02:00
FileDialog goes into audacity/src/widgets and the mod-* directories go into audacity/modules. This leaves nothing in lib-src that isn't a 3rd-party libs or supporting files.
61 lines
1.6 KiB
CMake
61 lines
1.6 KiB
CMake
|
|
set( TARGET mod-script-pipe )
|
|
set( TARGET_ROOT ${CMAKE_CURRENT_SOURCE_DIR} )
|
|
|
|
message( STATUS "========== Configuring ${TARGET} ==========" )
|
|
|
|
def_vars()
|
|
|
|
add_library( ${TARGET} MODULE )
|
|
|
|
list( APPEND SOURCES
|
|
PRIVATE
|
|
${TARGET_ROOT}/PipeServer.cpp
|
|
${TARGET_ROOT}/ScripterCallback.cpp
|
|
)
|
|
|
|
get_target_property( INCLUDES wxWidgets INTERFACE_INCLUDE_DIRECTORIES )
|
|
list( APPEND INCLUDES
|
|
PUBLIC
|
|
${TARGET_ROOT}
|
|
)
|
|
|
|
get_target_property( DEFINES wxWidgets INTERFACE_COMPILE_DEFINITIONS )
|
|
list( APPEND DEFINES
|
|
PRIVATE
|
|
BUILDING_SCRIPT_PIPE
|
|
|
|
# This is needed until the transition to cmake is complete and
|
|
# the Windows pragmas are removed from ScripterCallback.cpp.
|
|
# Without it, the wxWidgets "debug.h" will define __WXDEBUG__
|
|
# which then causes this module to emit library pragmas for the
|
|
# debug versions of wxWidgets...even if the build is for Release.
|
|
wxDEBUG_LEVEL=0
|
|
)
|
|
|
|
list( APPEND LOPTS
|
|
PRIVATE
|
|
$<$<PLATFORM_ID:Darwin>:-undefined dynamic_lookup>
|
|
)
|
|
|
|
list( APPEND LIBRARIES
|
|
PRIVATE
|
|
Audacity
|
|
$<$<PLATFORM_ID:Windows>: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_options( ${TARGET} PRIVATE ${LOPTS} )
|
|
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
|
|