-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCMakeLists.txt
45 lines (33 loc) · 1 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
cmake_minimum_required(VERSION 3.5)
project(adbg VERSION 0.1 LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
find_package(PkgConfig REQUIRED)
pkg_check_modules(CAPSTONE REQUIRED capstone>=3.0.4)
include_directories(${CAPSTONE_INCLUDE_DIRS})
link_directories(${CAPSTONE_LIBRARY_DIRS})
find_package(Qt6 REQUIRED COMPONENTS Widgets)
find_package(Qt6 REQUIRED COMPONENTS Network)
find_package(fmt)
file(GLOB SRC ./src/*.cpp)
file(GLOB UI ./src/*.ui)
file(GLOB H ./src/*.h)
INCLUDE_DIRECTORIES(./src)
qt_wrap_ui(FORMS_UIC ${UI})
message("${FORMS_UIC}")
qt_add_executable(adbg
MANUAL_FINALIZATION
"resource.qrc"
${UI}
${SRC}
${H}
)
target_link_libraries(adbg PRIVATE Qt6::Widgets)
target_link_libraries(adbg PRIVATE Qt6::Network)
target_link_libraries(adbg PRIVATE ${CAPSTONE_LIBRARIES})
target_link_libraries(adbg PRIVATE fmt::fmt)