diff options
| author | rose <47357290+rompse@users.noreply.github.com> | 2021-09-30 16:00:17 -0400 |
|---|---|---|
| committer | rose <47357290+rompse@users.noreply.github.com> | 2021-09-30 16:00:17 -0400 |
| commit | 11b350aa1984cc19a2993fd5a60b5eabe28dc8bc (patch) | |
| tree | 8036264c4670601ef17faa82a75fa1628c23c259 /examples/triage | |
| parent | ed2115cda93742733ac6f3239947681963be87c8 (diff) | |
Fix CMake recursive subdirectories & triage build
Diffstat (limited to 'examples/triage')
| -rw-r--r-- | examples/triage/CMakeLists.txt | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/examples/triage/CMakeLists.txt b/examples/triage/CMakeLists.txt index 05dd03ce..4eb6ef5f 100644 --- a/examples/triage/CMakeLists.txt +++ b/examples/triage/CMakeLists.txt @@ -1,12 +1,8 @@ cmake_minimum_required(VERSION 3.9 FATAL_ERROR) -option(QT6 "Target Qt 6" OFF) - project(triage) -if(NOT QT6) - set(CMAKE_OSX_ARCHITECTURES x86_64) -endif() +find_package(Qt6 COMPONENTS Core Gui Widgets REQUIRED) file(GLOB SOURCES *.cpp @@ -18,8 +14,9 @@ else() add_library(triage SHARED ${SOURCES}) endif() -target_link_libraries(triage binaryninjaapi binaryninjaui) - +target_link_libraries(triage binaryninjaapi binaryninjaui + Qt6::Core Qt6::Gui Qt6::Widgets) + set_target_properties(triage PROPERTIES CXX_STANDARD 17 CXX_VISIBILITY_PRESET hidden |
