mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-08 15:52:53 +02:00
Previously lib-src that we controlled had their cmake files with them. This is clearer. Also added place holders for help and locale. Also enabled libvorbis and soundtouch and disabled portburn.
25 lines
704 B
CMake
25 lines
704 B
CMake
#directory lib-src/FileDialog
|
|
set( TARGET FileDialog )
|
|
set( TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET} )
|
|
project( ${TARGET} )
|
|
|
|
set( SOURCES
|
|
${LIB_SRC_DIRECTORY}FileDialog/FileDialog.cpp
|
|
#${LIB_SRC_DIRECTORY}FileDialog/gtk/FileDialogPrivate.cpp #not on windows.
|
|
${LIB_SRC_DIRECTORY}FileDialog/win/FileDialogPrivate.cpp
|
|
)
|
|
|
|
add_library( FileDialog STATIC ${SOURCES})
|
|
find_package(wxWidgets REQUIRED COMPONENTS net core base)
|
|
include( ${wxWidgets_USE_FILE} )
|
|
target_include_directories( ${TARGET} PRIVATE
|
|
#${wxWidgets_INCLUDE_DIRS}
|
|
${TARGET_SOURCE}
|
|
${TARGET_SOURCE}/win
|
|
)
|
|
add_definitions( -DWXUSINGDLL -DWIN32 -D_LIB
|
|
#${wxWidgets_DEFINITIONS}
|
|
)
|
|
target_link_libraries(${TARGET} ${wxWidgets_LIBRARIES})
|
|
|