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,39 +4,44 @@ set( TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET} )
project( ${TARGET} )
set( SOURCES
${LIB_SRC_DIRECTORY}expat/amiga/expat_68k.c
${LIB_SRC_DIRECTORY}expat/amiga/expat_68k_handler_stubs.c
${LIB_SRC_DIRECTORY}expat/amiga/expat_lib.c
${LIB_SRC_DIRECTORY}expat/amiga/expat_vectors.c
${LIB_SRC_DIRECTORY}expat/amiga/launch.c
${LIB_SRC_DIRECTORY}expat/examples/elements.c
${LIB_SRC_DIRECTORY}expat/examples/outline.c
#${LIB_SRC_DIRECTORY}expat/amiga/expat_68k.c
#${LIB_SRC_DIRECTORY}expat/amiga/expat_68k_handler_stubs.c
#${LIB_SRC_DIRECTORY}expat/amiga/expat_lib.c
#${LIB_SRC_DIRECTORY}expat/amiga/expat_vectors.c
#${LIB_SRC_DIRECTORY}expat/amiga/launch.c
#${LIB_SRC_DIRECTORY}expat/examples/elements.c
#${LIB_SRC_DIRECTORY}expat/examples/outline.c
${LIB_SRC_DIRECTORY}expat/lib/xmlparse.c
${LIB_SRC_DIRECTORY}expat/lib/xmlrole.c
${LIB_SRC_DIRECTORY}expat/lib/xmltok.c
${LIB_SRC_DIRECTORY}expat/lib/xmltok_impl.c
${LIB_SRC_DIRECTORY}expat/lib/xmltok_ns.c
${LIB_SRC_DIRECTORY}expat/tests/chardata.c
${LIB_SRC_DIRECTORY}expat/tests/minicheck.c
${LIB_SRC_DIRECTORY}expat/tests/runtests.c
${LIB_SRC_DIRECTORY}expat/tests/benchmark/benchmark.c
${LIB_SRC_DIRECTORY}expat/xmlwf/codepage.c
${LIB_SRC_DIRECTORY}expat/xmlwf/ct.c
${LIB_SRC_DIRECTORY}expat/xmlwf/readfilemap.c
${LIB_SRC_DIRECTORY}expat/xmlwf/unixfilemap.c
${LIB_SRC_DIRECTORY}expat/xmlwf/win32filemap.c
${LIB_SRC_DIRECTORY}expat/xmlwf/xmlfile.c
${LIB_SRC_DIRECTORY}expat/xmlwf/xmlmime.c
${LIB_SRC_DIRECTORY}expat/xmlwf/xmlwf.c
#${LIB_SRC_DIRECTORY}expat/tests/chardata.c
#${LIB_SRC_DIRECTORY}expat/tests/minicheck.c
#${LIB_SRC_DIRECTORY}expat/tests/runtests.c
#${LIB_SRC_DIRECTORY}expat/tests/benchmark/benchmark.c
#${LIB_SRC_DIRECTORY}expat/xmlwf/codepage.c
#${LIB_SRC_DIRECTORY}expat/xmlwf/ct.c
#${LIB_SRC_DIRECTORY}expat/xmlwf/readfilemap.c
#${LIB_SRC_DIRECTORY}expat/xmlwf/unixfilemap.c
#${LIB_SRC_DIRECTORY}expat/xmlwf/win32filemap.c
#${LIB_SRC_DIRECTORY}expat/xmlwf/xmlfile.c
#${LIB_SRC_DIRECTORY}expat/xmlwf/xmlmime.c
#${LIB_SRC_DIRECTORY}expat/xmlwf/xmlwf.c
#${LIB_SRC_DIRECTORY}expat/tests/runtestspp.cpp
)
# This defines the #define on both Windows and Linux.
add_definitions( )
add_library( ${TARGET} MODULE ${SOURCES})
add_definitions(
-D_LIB
-DCOMPILED_FROM_DSP
)
add_library( ${TARGET} STATIC ${SOURCES})
target_include_directories( ${TARGET} PRIVATE
${TARGET_SOURCE}/lib
)
target_link_libraries( ${TARGET} )