forked from Gamer92000/TeamSpeak-3-Telegram-Bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (31 loc) · 833 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
cmake_minimum_required(VERSION 3.10)
set(CMAKE_GENERATOR_TOOLSET "v140")
set(CMAKE_VS_PLATFORM_TOOLSET "v140")
# Use this to locate Qt5.12.3 on your development machine
# list(APPEND CMAKE_PREFIX_PATH "H:/Qt/5.12.3/msvc2017_64")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
project("TelegramBridge")
message("Looking for Qt...")
find_package(Qt5 REQUIRED Widgets Network)
if (${Qt5_FOUND})
message("Found Qt " ${Qt5_VERSION})
else()
message("Couldn't find Qt")
endif()
include_directories("ts3client-pluginsdk/include")
set(sources
src/config.ui
src/config.cpp
src/plugin.cpp
src/update.ui
src/update.cpp
src/WebComm.cpp
)
add_library(${CMAKE_PROJECT_NAME} SHARED ${sources})
target_link_libraries(
${CMAKE_PROJECT_NAME}
Qt5::Widgets
Qt5::Network
)