mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-20 06:10:06 +02:00
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)
49 lines
1.2 KiB
CMake
49 lines
1.2 KiB
CMake
|
|
add_library( ${TARGET} STATIC )
|
|
|
|
list( APPEND SOURCES
|
|
PRIVATE
|
|
${TARGET_ROOT}/FileDialog.cpp
|
|
$<$<PLATFORM_ID:Windows>:${TARGET_ROOT}/win/FileDialogPrivate.cpp>
|
|
$<$<PLATFORM_ID:Darwin>:${TARGET_ROOT}/mac/FileDialogPrivate.mm>
|
|
$<$<PLATFORM_ID:Linux>:${TARGET_ROOT}/gtk/FileDialogPrivate.cpp>
|
|
)
|
|
|
|
list( APPEND INCLUDES
|
|
PUBLIC
|
|
${TARGET_ROOT}
|
|
)
|
|
|
|
list( APPEND DEFINES
|
|
PRIVATE
|
|
$<$<PLATFORM_ID:Windows>:__WIN32__>
|
|
)
|
|
|
|
list( APPEND OPTIONS
|
|
PRIVATE
|
|
$<$<PLATFORM_ID:Windows>:/permissive->
|
|
$<$<PLATFORM_ID:Darwin>:-Wno-deprecated-declarations>
|
|
$<$<PLATFORM_ID:Linux>:-Wno-deprecated-declarations>
|
|
)
|
|
|
|
list( APPEND FEATURES
|
|
PRIVATE
|
|
cxx_std_11
|
|
)
|
|
|
|
list( APPEND LIBRARIES
|
|
PRIVATE
|
|
wxwidgets
|
|
PUBLIC
|
|
$<$<PLATFORM_ID:Linux>:PkgConfig::GTK>
|
|
)
|
|
|
|
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
|
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
|
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
|
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
|
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
|
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
|
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
|
|