-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
44 lines (34 loc) · 879 Bytes
/
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
cmake_minimum_required(VERSION 3.14)
project(MiraiDemo LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(MIRAI_CPP_BUILD_EXAMPLES OFF CACHE BOOL "Build examples" FORCE)
add_subdirectory(mirai-cpp)
include_directories(include)
#find_package(Qt5 COMPONENTS Core Network REQUIRED)
find_package(Qt5 COMPONENTS Core Network)
add_executable(MiraiDemo
main.cpp
pkginfo.h
pkgquery.h
pkgquery.cpp
mnerinfo.h
mnerquery.h
mnerquery.cpp
setuinfo.h
setuquery.h
setuquery.cpp
cnpkgquery.h
cnpkgquery.cpp
wikiquery.h
wikiquery.cpp
whitelist.h
wikiresult.h
wikiresult.cpp
)
target_link_libraries(MiraiDemo Qt5::Core Qt5::Network mirai-cpp pthread)
target_compile_definitions(${PROJECT_NAME} PRIVATE MIRAICPP_STATICLIB)