Skip to content
This repository was archived by the owner on Jul 11, 2022. It is now read-only.

Commit ef191e4

Browse files
CouleeAppsjonpalmisc
authored andcommitted
Support cmake --install build
Binja api cmake has a built-in macro for this, so you can use that instead of providing your own.
1 parent 60ef47f commit ef191e4

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,8 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
9696
target_compile_options(ObjectiveNinja PRIVATE "-fPIC")
9797
endif()
9898

99-
# Option to automatically install the plugin after successful builds.
100-
option(AUTO_INSTALL_PLUGIN "Install the plugin after building (macOS only)" OFF)
101-
if(AUTO_INSTALL_PLUGIN)
102-
add_custom_command(TARGET ObjectiveNinja POST_BUILD
103-
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:ObjectiveNinja>
104-
"~/Library/Application Support/Binary Ninja/plugins/")
105-
endif()
99+
# Support cmake --install
100+
bn_install_plugin(ObjectiveNinja)
106101

107102
# Internal tools ---------------------------------------------------------------
108103

0 commit comments

Comments
 (0)