1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-08 15:52:53 +02:00
Leland Lucius 2e113ba0a5 More cmake updates
Uses system libraries by default with a fallback to local
Adds the Wrapper build on OSX
Adds mod_script_pipe
Adds ffmpeg
Some additional cleanup
2020-02-05 11:10:22 -06:00

49 lines
1.2 KiB
CMake

add_library( ${TARGET} STATIC )
list( APPEND SOURCES
PRIVATE
${TARGET_ROOT}/source/SoundTouch/AAFilter.cpp
${TARGET_ROOT}/source/SoundTouch/FIFOSampleBuffer.cpp
${TARGET_ROOT}/source/SoundTouch/FIRFilter.cpp
${TARGET_ROOT}/source/SoundTouch/mmx_optimized.cpp
${TARGET_ROOT}/source/SoundTouch/RateTransposer.cpp
${TARGET_ROOT}/source/SoundTouch/SoundTouch.cpp
${TARGET_ROOT}/source/SoundTouch/TDStretch.cpp
${TARGET_ROOT}/source/SoundTouch/cpu_detect_x86.cpp
${TARGET_ROOT}/source/SoundTouch/sse_optimized.cpp
)
list( APPEND INCLUDES
PUBLIC
${CMAKE_CURRENT_BINARY_DIR}/public
${TARGET_ROOT}/include
)
if( UNIX )
check_cxx_compiler_flag( "-mmmx" HAVE_MMX )
if( HAVE_MMX )
list( APPEND OPTIONS
PRIVATE
-mmmx
)
endif()
check_cxx_compiler_flag( "-msse" HAVE_SSE )
if( HAVE_SSE )
list( APPEND OPTIONS
PRIVATE
-msse
)
endif()
endif()
configure_file( soundtouch_config.h.in public/soundtouch_config.h )
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
target_sources( ${TARGET} PRIVATE ${SOURCES} )
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )