From c398bd1ea423f1f9a4fa9e6e3fcadc9143a99f99 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Tue, 6 Sep 2022 19:14:03 -0400 Subject: [Enterprise] C++ api and example --- examples/enterprise_test/CMakeLists.txt | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 examples/enterprise_test/CMakeLists.txt (limited to 'examples/enterprise_test/CMakeLists.txt') diff --git a/examples/enterprise_test/CMakeLists.txt b/examples/enterprise_test/CMakeLists.txt new file mode 100644 index 00000000..9833817c --- /dev/null +++ b/examples/enterprise_test/CMakeLists.txt @@ -0,0 +1,33 @@ +cmake_minimum_required(VERSION 3.9 FATAL_ERROR) + +project(enterprise_test CXX C) + +add_executable(${PROJECT_NAME} + src/enterprise_test.cpp) + +if(NOT BN_API_BUILD_EXAMPLES AND NOT BN_INTERNAL_BUILD) + # Out-of-tree build + find_path( + BN_API_PATH + NAMES binaryninjaapi.h + HINTS ../.. binaryninjaapi $ENV{BN_API_PATH} + REQUIRED + ) + add_subdirectory(${BN_API_PATH} api) +endif() + +target_link_libraries(${PROJECT_NAME} + binaryninjaapi) + +if (NOT WIN32) + target_link_libraries(${PROJECT_NAME} + dl) +endif() + +set_target_properties(${PROJECT_NAME} PROPERTIES + CXX_STANDARD 17 + CXX_VISIBILITY_PRESET hidden + CXX_STANDARD_REQUIRED ON + VISIBILITY_INLINES_HIDDEN ON + POSITION_INDEPENDENT_CODE ON + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/out/bin) -- cgit v1.3.1