diff options
| author | Rusty Wagner <rusty@vector35.com> | 2020-07-10 23:36:26 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2020-07-17 18:31:55 -0400 |
| commit | 308caf1f5b3f8f02ebb44c0c43a838e0709200a1 (patch) | |
| tree | 2b04f6b809eedf88285eab69c662035ec6ce200d /examples/triage | |
| parent | b3d490e9e7f21a90922973a617a89a8620f5778b (diff) | |
Switch build system to cmake
Diffstat (limited to 'examples/triage')
| -rw-r--r-- | examples/triage/CMakeLists.txt | 28 |
1 files changed, 28 insertions, 0 deletions
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() |
