-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
48 lines (35 loc) · 914 Bytes
/
CMakeLists.txt
File metadata and controls
48 lines (35 loc) · 914 Bytes
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
cmake_minimum_required(VERSION 3.16)
project(vpn VERSION 7.5.2)
find_package(Albert REQUIRED)
file(GLOB_RECURSE I18N_SOURCES src/*)
albert_plugin(
SOURCES
src/*.h
src/*.cpp
vpn.qrc
INCLUDE PRIVATE
src
I18N_SOURCES
${I18N_SOURCES}
QT
Widgets
)
if(APPLE)
albert_plugin_link(PRIVATE "-framework SystemConfiguration")
albert_plugin_include_directories(PRIVATE src/mac)
albert_plugin_sources(src/mac/plugin.cpp)
elseif(UNIX)
albert_plugin_link_qt(DBus VERSION 6.0 REQUIRED)
albert_plugin_dbus_interface(
XML "src/xdg/nm.xml"
INCLUDE "custom_types.h"
)
albert_plugin_include_directories(PRIVATE
src/xdg # for custom_types.h
${PROJECT_BINARY_DIR} # for the generated files
)
albert_plugin_sources(GLOB
src/xdg/plugin.cpp
src/xdg/custom_types.h
)
endif()