From 308caf1f5b3f8f02ebb44c0c43a838e0709200a1 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Fri, 10 Jul 2020 23:36:26 -0400 Subject: Switch build system to cmake --- examples/triage/CMakeLists.txt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 examples/triage/CMakeLists.txt (limited to 'examples/triage') diff --git a/examples/triage/CMakeLists.txt b/examples/triage/CMakeLists.txt new file mode 100644 index 00000000..f3d77fb4 --- /dev/null +++ b/examples/triage/CMakeLists.txt @@ -0,0 +1,28 @@ +cmake_minimum_required(VERSION 3.9 FATAL_ERROR) + +project(triage) + +file(GLOB SOURCES + *.cpp + *.h) + +if(DEMO) + add_library(triage STATIC ${SOURCES}) +else() + add_library(triage SHARED ${SOURCES}) +endif() + +target_link_libraries(triage binaryninjaapi binaryninjaui) + +set_target_properties(triage PROPERTIES + CXX_STANDARD 17 + CXX_VISIBILITY_PRESET hidden + CXX_STANDARD_REQUIRED ON + VISIBILITY_INLINES_HIDDEN ON + POSITION_INDEPENDENT_CODE ON) + +if(BN_INTERNAL_BUILD) + ui_plugin_rpath(triage) + set_target_properties(triage PROPERTIES + LIBRARY_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR}) +endif() -- cgit v1.3.1