1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-06 14:52:34 +02:00
Leland Lucius 6217351a12 Updates the cmake build system
It's still has some work, but it successfully builds on
all 3 main platforms.  Some of the outstanding items
include:

   Install target testing (mostly important for Linux)
   CMakeList clean up and comments
   Debug and Release build verification
   Audit of compile/link options
   Need a Mac signed and notarized build
   (and probably more)
2020-02-03 00:39:43 -06:00

59 lines
1.5 KiB
CMake

add_library( ${TARGET} STATIC )
list( APPEND SOURCES
PRIVATE
${TARGET_ROOT}/lib/analysis.c
${TARGET_ROOT}/lib/bitrate.c
${TARGET_ROOT}/lib/block.c
${TARGET_ROOT}/lib/codebook.c
${TARGET_ROOT}/lib/envelope.c
${TARGET_ROOT}/lib/floor0.c
${TARGET_ROOT}/lib/floor1.c
${TARGET_ROOT}/lib/info.c
${TARGET_ROOT}/lib/lookup.c
${TARGET_ROOT}/lib/lpc.c
${TARGET_ROOT}/lib/lsp.c
${TARGET_ROOT}/lib/mapping0.c
${TARGET_ROOT}/lib/mdct.c
${TARGET_ROOT}/lib/psy.c
${TARGET_ROOT}/lib/registry.c
${TARGET_ROOT}/lib/res0.c
${TARGET_ROOT}/lib/sharedbook.c
${TARGET_ROOT}/lib/smallft.c
${TARGET_ROOT}/lib/synthesis.c
${TARGET_ROOT}/lib/vorbisenc.c
${TARGET_ROOT}/lib/vorbisfile.c
${TARGET_ROOT}/lib/window.c
)
list( APPEND INCLUDES
PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/private
${TARGET_ROOT}/lib
${LIBOGG_INCLUDES}
PUBLIC
${TARGET_ROOT}/include
)
list( APPEND DEFINES
PRIVATE
HAVE_CONFIG_H
)
list( APPEND LIBRARIES
PRIVATE
libogg
)
configure_file( config.h.in private/config.h )
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
target_sources( ${TARGET} PRIVATE ${SOURCES} )
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )