mirror of
https://github.com/thestk/stk
synced 2026-01-11 12:01:52 +00:00
[FindCoreAudio.cmake] Updated
This commit is contained in:
@@ -63,20 +63,14 @@ if(REALTIME)
|
||||
target_link_libraries(stk PUBLIC ${ALSA_LIBRARIES})
|
||||
target_compile_definitions(stk PUBLIC __LINUX_ALSA__)
|
||||
endif()
|
||||
elseif(${CMAKE_SYSTEM_NAME} STREQUAL Darwin)
|
||||
#============== MAC OS ================#
|
||||
message("Machintosh!")
|
||||
find_package(CoreAudio REQUIRED)
|
||||
include_directories(${COREAUDIO_INCLUDE_DIRS})
|
||||
target_compile_definitions(stk PUBLIC -D__MACOSX_CORE__)
|
||||
target_link_libraries(stk PUBLIC COREAUDIO_LIBRARY COREAUDIO_FOUNDATION COREAUDIO_MIDI)
|
||||
endif()
|
||||
elseif(${CMAKE_SYSTEM_NAME} STREQUAL Darwin)
|
||||
#============== MAC OS ================#
|
||||
message("MacOS!")
|
||||
find_package(CoreAudio)
|
||||
if(ENABLE_CORE)
|
||||
if(COREAUDIO_INCLUDE_DIRS)
|
||||
include_directories(${COREAUDIO_INCLUDE_DIRS})
|
||||
else()
|
||||
message(FATAL_ERROR "CoreAudio header files not found!")
|
||||
endif()
|
||||
target_compile_definitions(stk PUBLIC -D__MACOSX_CORE__)
|
||||
target_link_libraries(stk PUBLIC COREAUDIO_LIBRARY COREAUDIO_FOUNDATION COREAUDIO_MIDI)
|
||||
endif()
|
||||
|
||||
# TODO: WINDOWS SUPPORT
|
||||
elseif(${CMAKE_SYSTEM_NAME} STREQUAL Windows)
|
||||
|
||||
Reference in New Issue
Block a user