1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-11 00:53:46 +02:00

Compile all libs and link (Debug only so far) using CMake

This commit is contained in:
James Crook
2018-04-01 15:51:11 +01:00
parent 47e826546a
commit 03945e8057
21 changed files with 509 additions and 388 deletions

View File

@@ -4,12 +4,12 @@ set( TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET} )
project( ${TARGET} )
set( SOURCES
${LIB_SRC_DIRECTORY}portmixer/px_tests/px_test.c
${LIB_SRC_DIRECTORY}portmixer/src/px_example_api.c
${LIB_SRC_DIRECTORY}portmixer/src/px_linux_alsa.c
${LIB_SRC_DIRECTORY}portmixer/src/px_mac_coreaudio.c
#${LIB_SRC_DIRECTORY}portmixer/px_tests/px_test.c
#${LIB_SRC_DIRECTORY}portmixer/src/px_example_api.c
#${LIB_SRC_DIRECTORY}portmixer/src/px_linux_alsa.c
#${LIB_SRC_DIRECTORY}portmixer/src/px_mac_coreaudio.c
${LIB_SRC_DIRECTORY}portmixer/src/px_mixer.c
${LIB_SRC_DIRECTORY}portmixer/src/px_unix_oss.c
#${LIB_SRC_DIRECTORY}portmixer/src/px_unix_oss.c
${LIB_SRC_DIRECTORY}portmixer/src/px_win_common.c
${LIB_SRC_DIRECTORY}portmixer/src/px_win_ds.c
${LIB_SRC_DIRECTORY}portmixer/src/px_win_endpoint.c
@@ -17,11 +17,23 @@ ${LIB_SRC_DIRECTORY}portmixer/src/px_win_wasapi.c
${LIB_SRC_DIRECTORY}portmixer/src/px_win_wmme.c
)
# This defines the #define on both Windows and Linux.
add_definitions( )
add_definitions(
-D_LIB
)
add_library( ${TARGET} STATIC ${SOURCES})
target_include_directories( ${TARGET} PRIVATE
#if(MSVC)
#FIX-ME What a horrible hacky place for a config file!
add_definitions(/FI"${top_dir}/win/Projects/${TARGET}/Debug/config.h")
#else()
# GCC or Clang
# add_definitions(-include ${top_dir}/win/Projects/${TARGET}/config.h)
#endif()
target_include_directories( ${TARGET} PRIVATE
${TARGET_SOURCE}/include
${LIB_SRC_DIRECTORY}/portaudio-v19/include
)
target_link_libraries( ${TARGET} )