mirror of
https://github.com/darlinghq/darling.git
synced 2024-11-27 06:10:36 +00:00
Fix #722
This commit is contained in:
parent
8ba30d6478
commit
34147e8243
@ -20,7 +20,7 @@ SET(CMAKE_SKIP_RPATH TRUE)
|
||||
|
||||
project(darling)
|
||||
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
enable_language(ASM)
|
||||
|
||||
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
|
||||
|
@ -3,7 +3,6 @@ project(darling-src)
|
||||
unset(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES)
|
||||
unset(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES)
|
||||
|
||||
cmake_minimum_required(VERSION 3.12.0)
|
||||
cmake_policy(SET CMP0005 NEW)
|
||||
|
||||
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
|
||||
|
@ -40,16 +40,16 @@ set(sources
|
||||
|
||||
add_library(AudioFileTools_util OBJECT ${sources})
|
||||
|
||||
add_darling_executable(afplay afplay.cpp)
|
||||
target_link_libraries(afplay AudioFileTools_util system AudioToolbox cxx CoreServices CoreAudio)
|
||||
add_darling_executable(afplay afplay.cpp $<TARGET_OBJECTS:AudioFileTools_util>)
|
||||
target_link_libraries(afplay system AudioToolbox cxx CoreServices CoreAudio)
|
||||
|
||||
add_darling_executable(afrecord afrecord.cpp)
|
||||
target_link_libraries(afrecord AudioFileTools_util system AudioToolbox cxx CoreServices CoreAudio)
|
||||
add_darling_executable(afrecord afrecord.cpp $<TARGET_OBJECTS:AudioFileTools_util>)
|
||||
target_link_libraries(afrecord system AudioToolbox cxx CoreServices CoreAudio)
|
||||
|
||||
add_darling_executable(afinfo afinfo.cpp)
|
||||
target_link_libraries(afinfo AudioFileTools_util system AudioToolbox cxx CoreServices CoreAudio)
|
||||
add_darling_executable(afinfo afinfo.cpp $<TARGET_OBJECTS:AudioFileTools_util>)
|
||||
target_link_libraries(afinfo system AudioToolbox cxx CoreServices CoreAudio)
|
||||
|
||||
add_darling_executable(afconvert afconvert.cpp afconvert_main.cpp)
|
||||
target_link_libraries(afconvert AudioFileTools_util system AudioToolbox cxx CoreServices CoreAudio)
|
||||
add_darling_executable(afconvert afconvert.cpp afconvert_main.cpp $<TARGET_OBJECTS:AudioFileTools_util>)
|
||||
target_link_libraries(afconvert system AudioToolbox cxx CoreServices CoreAudio)
|
||||
|
||||
install(TARGETS afplay afrecord afinfo afconvert DESTINATION libexec/darling/usr/bin)
|
||||
|
Loading…
Reference in New Issue
Block a user