From 2f1150703636b2b06d84bb66853fce7382bf6f29 Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Thu, 31 Jul 2025 13:28:58 -0700 Subject: Introduce bn::base::function_ref, a non-owning function wrapper inspired by C++26's std::function_ref This is to `std::function` as `std::string_view` is to `std::string`. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CMakeLists.txt') 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") -- cgit v1.3.1