diff options
| author | Glenn Smith <glenn@vector35.com> | 2022-09-06 19:14:03 -0400 |
|---|---|---|
| committer | Alexander Taylor <alex@vector35.com> | 2022-10-12 01:40:27 -0400 |
| commit | c398bd1ea423f1f9a4fa9e6e3fcadc9143a99f99 (patch) | |
| tree | 6cd62115acaa6e18d9d136be28cfbd31435a01e2 /examples/enterprise_test/CMakeLists.txt | |
| parent | f68aa8ba0145f17a9ad76f59b1885c998f5fffa5 (diff) | |
[Enterprise] C++ api and example
Diffstat (limited to 'examples/enterprise_test/CMakeLists.txt')
| -rw-r--r-- | examples/enterprise_test/CMakeLists.txt | 33 |
1 files changed, 33 insertions, 0 deletions
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) |
