summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2023-02-03 11:38:24 +0800
committerXusheng <xusheng@vector35.com>2023-02-03 12:37:45 +0800
commit5b41ad47e381a8807e921977517c0108dfbf6367 (patch)
tree3ca12e080835cca902c7ac8079143c5d72dd2e43 /CMakeLists.txt
parent77e6d1fb41b829dd23c810441fc58fb7502777f1 (diff)
Move the debugger docs into the debugger repo and copy them to the API folder during build
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 05d2a0c5..fecfb6f1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -92,3 +92,13 @@ endif()
if(BN_API_BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
+
+if (DEBUGGER)
+ add_custom_command(TARGET binaryninjaapi PRE_BUILD
+ COMMAND ${CMAKE_COMMAND} -E echo "Copying Debugger Docs"
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../public/debugger/docs/guide
+ ${CMAKE_CURRENT_SOURCE_DIR}/docs/guide
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../public/debugger/docs/img
+ ${CMAKE_CURRENT_SOURCE_DIR}/docs/img
+ )
+endif()