summaryrefslogtreecommitdiff
path: root/examples/uinotification
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2020-11-06 14:08:40 +0800
committerXusheng <xusheng@vector35.com>2020-11-06 17:02:20 +0800
commit7f7244419b3776f69ad2140995299eef3f6a3257 (patch)
treec0f1221ac4edbb9341504911d6a6bee28354de14 /examples/uinotification
parent0d28293999682389b0eb09128dba99b2723a6efb (diff)
fix UI plugin build and update build instructions
Diffstat (limited to 'examples/uinotification')
-rw-r--r--examples/uinotification/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/uinotification/CMakeLists.txt b/examples/uinotification/CMakeLists.txt
index 6af09269..3dbf3c72 100644
--- a/examples/uinotification/CMakeLists.txt
+++ b/examples/uinotification/CMakeLists.txt
@@ -2,12 +2,15 @@ cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
project(uinotification)
+find_package(Qt5 COMPONENTS Core Gui Widgets REQUIRED)
+
file(GLOB SOURCES
*.cpp
*.h)
add_library(uinotification SHARED ${SOURCES})
-target_link_libraries(uinotification binaryninjaapi binaryninjaui)
+target_link_libraries(uinotification binaryninjaapi binaryninjaui
+ Qt5::Core Qt5::Gui Qt5::Widgets)
set_target_properties(uinotification PROPERTIES
CXX_STANDARD 17
@@ -15,7 +18,7 @@ set_target_properties(uinotification PROPERTIES
CXX_STANDARD_REQUIRED ON
VISIBILITY_INLINES_HIDDEN ON
POSITION_INDEPENDENT_CODE ON
- LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../../bin)
+ LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/out/bin)
if(BN_INTERNAL_BUILD)
ui_plugin_rpath(uinotification)