summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorrose <47357290+rompse@users.noreply.github.com>2021-09-30 16:48:56 -0400
committerrose <47357290+rompse@users.noreply.github.com>2021-09-30 16:48:56 -0400
commite645d7b8bbbfc71d6ed5cd85ce90e2f0ff41fb5b (patch)
tree8aa5fa880a306db825d59049bbdc060c00518908 /examples
parent11b350aa1984cc19a2993fd5a60b5eabe28dc8bc (diff)
revert triage
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt1
-rw-r--r--examples/triage/CMakeLists.txt11
2 files changed, 7 insertions, 5 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index b2f7e515..4aa55dc8 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -6,7 +6,6 @@ add_subdirectory(mlil_parser)
add_subdirectory(print_syscalls)
if(NOT HEADLESS)
add_subdirectory(uinotification)
- add_subdirectory(triage)
endif()
if(NOT DEMO AND NOT PERSONAL)
add_subdirectory(workflows/inliner)
diff --git a/examples/triage/CMakeLists.txt b/examples/triage/CMakeLists.txt
index 4eb6ef5f..05dd03ce 100644
--- a/examples/triage/CMakeLists.txt
+++ b/examples/triage/CMakeLists.txt
@@ -1,8 +1,12 @@
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
+option(QT6 "Target Qt 6" OFF)
+
project(triage)
-find_package(Qt6 COMPONENTS Core Gui Widgets REQUIRED)
+if(NOT QT6)
+ set(CMAKE_OSX_ARCHITECTURES x86_64)
+endif()
file(GLOB SOURCES
*.cpp
@@ -14,9 +18,8 @@ else()
add_library(triage SHARED ${SOURCES})
endif()
-target_link_libraries(triage binaryninjaapi binaryninjaui
- Qt6::Core Qt6::Gui Qt6::Widgets)
-
+target_link_libraries(triage binaryninjaapi binaryninjaui)
+
set_target_properties(triage PROPERTIES
CXX_STANDARD 17
CXX_VISIBILITY_PRESET hidden