summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: a4def831c4d911c5cc482a122d8efb2066187105 (plain)
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
46
47
48
49
cmake_minimum_required(VERSION 3.7.2)
project(qtappfw VERSION 1.0.0 LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)

set(OE_QMAKE_PATH_EXTERNAL_HOST_BINS $ENV{OE_QMAKE_PATH_HOST_BINS})

find_package(Qt5Qml REQUIRED)
find_package(Qt5WebSockets REQUIRED)

find_package(PkgConfig REQUIRED)
pkg_check_modules(glib REQUIRED IMPORTED_TARGET glib-2.0)
pkg_check_modules(bluez_glib REQUIRED IMPORTED_TARGET bluez-glib)
pkg_check_modules(connman_glib REQUIRED IMPORTED_TARGET connman-glib)
pkg_check_modules(libmpdclient REQUIRED IMPORTED_TARGET libmpdclient)

include(GNUInstallDirs)

set(DEST_DIR "${CMAKE_INSTALL_PREFIX}")
set(PRIVATE_LIBS "${PRIVATE_LIBS} -lqtappfw-bt
                                  -lqtappfw-hvac
                                  -lqtappfw-mediaplayer
                                  -lqtappfw-map
                                  -lqtappfw-navigation
                                  -lqtappfw-network
                                  -lqtappfw-pbap
                                  -lqtappfw-radio
                                  -lqtappfw-telephony
                                  -lqtappfw-vehicle-signals
                                  -lqtappfw-weather")

set (SUBDIRS
	docs
	bluetooth
	hvac
	map
	mediaplayer
	navigation
	network
	pbap
	radio
	telephony
	vehicle-signals
	weather)

foreach(subdir ${SUBDIRS})
	add_subdirectory(${subdir})
endforeach()