1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-01 06:33:53 +01:00

CMakeLists.txt for libFLAC been rewritten

I've reproduced the commands from FLAC's configure.ac. Seems to build fine on Windows, MacOS, Linux and FreeBSD
This commit is contained in:
Vitaliy Kirsanov
2019-03-31 21:40:06 +03:00
committed by James Crook
parent a768ff177e
commit b07595781a
5 changed files with 222 additions and 152 deletions

View File

@@ -5,7 +5,9 @@ project(${TARGET})
add_library(${TARGET} STATIC ${LIB_SRC_DIRECTORY}FileDialog/FileDialog.cpp)
target_include_directories(${TARGET} PRIVATE ${TARGET_SOURCE})
set_target_properties(${TARGET} PROPERTIES CXX_STANDARD 11)
set_target_properties(${TARGET} PROPERTIES
CXX_STANDARD 11
OSX_ARCHITECTURES "")
find_package(wxWidgets REQUIRED COMPONENTS net core base)
include(${wxWidgets_USE_FILE})
@@ -15,7 +17,7 @@ target_link_libraries(${TARGET} PRIVATE ${wxWidgets_LIBRARIES})
if(WIN32)
target_sources(${TARGET} PRIVATE ${LIB_SRC_DIRECTORY}FileDialog/win/FileDialogPrivate.cpp)
target_compile_definitions(${TARGET} PRIVATE /D__WIN32__)
target_compile_definitions(${TARGET} PRIVATE __WIN32__)
target_include_directories(${TARGET} PRIVATE ${TARGET_SOURCE}/win)
elseif(APPLE)
target_sources(${TARGET} PRIVATE ${LIB_SRC_DIRECTORY}FileDialog/mac/FileDialogPrivate.mm)