Skip to content

Commit

Permalink
update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
micknoise committed Jan 4, 2025
1 parent 4f02619 commit f937afb
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions cpp/commandline/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,17 @@ if (LINUX)
add_definitions(-D__LINUX_ALSA__)
endif()

if (OSX)
MESSAGE(STATUS "OSX build")
target_link_libraries(maximilian PUBLIC -lasound)
if (APPLE)
MESSAGE(STATUS "Configuring for macOS build")

# Add macOS frameworks
target_link_libraries(maximilian PUBLIC
"-framework CoreAudio"
"-framework CoreFoundation"
"-framework CoreMidi"
)

# Define a macOS-specific macro
add_definitions(-D__MACOSX_CORE__)
#incomplete - need to add frameworks -framework CoreAudio -framework CoreFoundation

endif()

0 comments on commit f937afb

Please sign in to comment.