-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
59 lines (45 loc) · 1.55 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
project(LunaWebAppManager)
cmake_minimum_required(VERSION 2.8.8)
include(webOS/webOS)
webos_modules_init(1 0 0 QUALIFIER RC3)
webos_component(0 2 0)
webos_add_compiler_flags(ALL -fno-rtti)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++0x -g")
find_package(Qt5Gui REQUIRED)
if(NOT Qt5Gui_FOUND)
message(FATAL_ERROR "Qt5Gui module is required!")
endif()
find_package(Qt5Qml REQUIRED)
if(NOT Qt5Qml_FOUND)
message(FATAL_ERROR "Qt5Qml module is required!")
endif()
find_package(Qt5Quick REQUIRED)
if(NOT Qt5Quick_FOUND)
message(FATAL_ERROR "Qt5Quick module is required!")
endif()
find_package(Qt5WebEngine REQUIRED)
if(NOT Qt5WebEngine_FOUND)
message(FATAL_ERROR "Qt5WebEngine module is required!")
endif()
find_package(Qt5WebChannel REQUIRED)
if(NOT Qt5WebChannel_FOUND)
message(FATAL_ERROR "Qt5WebChannel module is required!")
endif()
find_package(Qt5DBus REQUIRED)
if(NOT Qt5DBus_FOUND)
message(FATAL_ERROR "Qt5DBus module is required!")
endif()
find_package(PkgConfig "0.22" REQUIRED)
pkg_check_modules(GLIB2 glib-2.0 REQUIRED)
pkg_check_modules(LS2 luna-service2 REQUIRED)
pkg_check_modules(SYSTEMD libsystemd REQUIRED)
pkg_check_modules(PBNJSON_C pbnjson_c REQUIRED)
pkg_check_modules(LUNA_SYSMGR_COMMON LunaSysMgrCommon REQUIRED)
pkg_check_modules(LUNA_PREFS luna-prefs REQUIRED)
pkg_check_modules(CONNMAN_QT5 connman-qt5 REQUIRED)
add_subdirectory(lib)
include_directories(lib)
add_subdirectory(src)
webos_build_configured_file(files/pkgconfig/webapp-plugin.pc PKGCONFIGDIR "")