summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2024-02-02 13:22:16 -0500
committerJosh Ferrell <josh@vector35.com>2024-02-02 15:40:51 -0500
commitb7ba4c5cf63e20d0f1c30a3f2393c12dde5eb7c5 (patch)
treef98fbc606c3f947a3737a9296a70d15402e8f20b /CMakeLists.txt
parent1e0b3ca09efa1739e2f00181c7ab2435ca5eae7a (diff)
Link api against CoreServices on mac
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cb942d19..183e24c4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,6 +39,11 @@ add_subdirectory(vendor/fmt EXCLUDE_FROM_ALL)
set_target_properties(fmt PROPERTIES POSITION_INDEPENDENT_CODE ON)
target_link_libraries(binaryninjaapi PUBLIC fmt::fmt)
+if(APPLE)
+ find_library(CORE_SERVICES_LIBRARY NAMES CoreServices)
+ target_link_libraries(binaryninjaapi PRIVATE ${CORE_SERVICES_LIBRARY})
+endif()
+
set_target_properties(binaryninjaapi PROPERTIES
CXX_STANDARD 17
CXX_VISIBILITY_PRESET hidden