summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1c1f5263..d0aff4fc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,11 +29,17 @@ if(NOT DEMO)
endif()
endif()
+if(NOT BN_INTERNAL_BUILD)
+ add_subdirectory(base)
+endif()
+
add_library(binaryninjaapi STATIC ${BN_API_SOURCES})
target_include_directories(binaryninjaapi
PUBLIC ${PROJECT_SOURCE_DIR})
+target_link_libraries(binaryninjaapi PUBLIC binaryninjabase)
+
# Store path to user plugin dir
if(WIN32)
set(BN_USER_PLUGINS_DIR "$ENV{APPDATA}\\Binary Ninja\\plugins")