Skip to content

Commit 5be93ba

Browse files
committed
Merge branch 'main' of github.com:LabSound/LabSoundDemo into main
2 parents 22b67c0 + 272d676 commit 5be93ba

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

CMakeLists.txt

+15-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,26 @@ configure_file("${LABSOUNDDEMO_ROOT}/LabSoundDemo.config.h" "${LABSOUNDDEMO_ROOT
1010

1111
add_subdirectory(LabSound)
1212

13+
if (APPLE)
14+
set(PLATFORM_LIBS
15+
"-framework AudioToolbox"
16+
"-framework AudioUnit"
17+
"-framework Accelerate"
18+
"-framework Cocoa"
19+
"-framework CoreAudio"
20+
# "-framework Metal"
21+
# "-framework MetalKit"
22+
# "-framework QuartzCore"
23+
)
24+
endif()
25+
1326
add_executable(LabSoundStarter LabSoundStarter.cpp)
14-
target_link_libraries(LabSoundStarter Lab::Sound)
27+
target_link_libraries(LabSoundStarter Lab::Sound ${PLATFORM_LIBS})
1528
target_include_directories(LabSoundStarter PRIVATE "${LABSOUNDDEMO_ROOT}")
1629
install(TARGETS LabSoundStarter RUNTIME DESTINATION bin)
1730

1831
add_executable(LabSoundDemo LabSoundDemo.cpp)
19-
target_link_libraries(LabSoundDemo Lab::Sound)
32+
target_link_libraries(LabSoundDemo Lab::Sound ${PLATFORM_LIBS})
2033
target_include_directories(LabSoundDemo PRIVATE "${LABSOUNDDEMO_ROOT}")
2134
install(TARGETS LabSoundDemo RUNTIME DESTINATION bin)
2235

0 commit comments

Comments
 (0)