| 1 |
|
| 2 |
add_library( ${TARGET} STATIC ) |
| 3 |
|
| 4 |
def_vars() |
| 5 |
|
| 6 |
set( SOURCES |
| 7 |
PRIVATE |
| 8 |
${TARGET_ROOT}/source/SoundTouch/AAFilter.cpp |
| 9 |
${TARGET_ROOT}/source/SoundTouch/FIFOSampleBuffer.cpp |
| 10 |
${TARGET_ROOT}/source/SoundTouch/FIRFilter.cpp |
| 11 |
${TARGET_ROOT}/source/SoundTouch/mmx_optimized.cpp |
| 12 |
${TARGET_ROOT}/source/SoundTouch/RateTransposer.cpp |
| 13 |
${TARGET_ROOT}/source/SoundTouch/SoundTouch.cpp |
| 14 |
${TARGET_ROOT}/source/SoundTouch/TDStretch.cpp |
| 15 |
${TARGET_ROOT}/source/SoundTouch/cpu_detect_x86.cpp |
| 16 |
${TARGET_ROOT}/source/SoundTouch/sse_optimized.cpp |
| 17 |
) |
| 18 |
|
| 19 |
set( INCLUDES |
| 20 |
PUBLIC |
| 21 |
${_PUBDIR} |
| 22 |
${TARGET_ROOT}/include |
| 23 |
) |
| 24 |
|
| 25 |
set( OPTIONS |
| 26 |
PRIVATE |
| 27 |
${MMX_FLAG} |
| 28 |
${SSE_FLAG} |
| 29 |
) |
| 30 |
|
| 31 |
configure_file( soundtouch_config.h.in public/soundtouch_config.h ) |
| 32 |
|
| 33 |
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" ) |
| 34 |
target_sources( ${TARGET} PRIVATE ${SOURCES} ) |
| 35 |
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} ) |
| 36 |
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} ) |
| 37 |
|
| 38 |
set_target_properties(${TARGET} PROPERTIES POSITION_INDEPENDENT_CODE On) |