-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
44 lines (38 loc) · 987 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
project(QtTox CXX)
cmake_minimum_required(VERSION 3.10)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLASG} -Wall")
add_library(libqttox
STATIC
include/chatlist.h
include/common.h
include/conference.h
include/core.h
include/files.h
include/lowlevel.h
include/messenger.h
include/options.h
include/self.h
include/toxencrypt.h
include/toxpk.h
include/toxid.h
include/toxstring.h
include/version.h
src/chatlist.cpp
src/conference.cpp
src/files.cpp
src/messenger.cpp
src/toxencrypt.cpp
src/toxpk.cpp
src/toxid.cpp
src/toxstring.cpp
)
find_package(Qt5Core REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_search_module(TOXCORE REQUIRED toxcore)
#pkg_search_module(TOXAV REQUIRED toxav)
#pkg_search_module(TOXENCRYPTSAVE REQUIRED toxencryptsave)
target_link_libraries(libqttox Qt5::Core)
include_directories(
"${CMAKE_SOURCE_DIR}/include"
"${CMAKE_SOURCE_DIR}/src"
)