-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
61 lines (52 loc) · 958 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
CMAKE_MINIMUM_REQUIRED(VERSION 3.1)
PROJECT(selain C CXX)
FIND_PACKAGE(PkgConfig)
PKG_CHECK_MODULES(GTKMM gtkmm-3.0 REQUIRED)
PKG_CHECK_MODULES(WEBKITGTK webkit2gtk-4.0 REQUIRED)
ADD_EXECUTABLE(
selain
src/command.cpp
src/command-entry.cpp
src/hint-context.cpp
src/keyboard.cpp
src/main.cpp
src/main-window.cpp
src/mode.cpp
src/status-bar.cpp
src/tab.cpp
src/tab-label.cpp
src/theme.cpp
src/utils.cpp
src/web-context.cpp
src/web-settings.cpp
)
TARGET_COMPILE_FEATURES(
selain
PRIVATE
cxx_std_17
)
TARGET_INCLUDE_DIRECTORIES(
selain
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/include
${GTKMM_INCLUDE_DIRS}
${WEBKITGTK_INCLUDE_DIRS}
)
TARGET_LINK_LIBRARIES(
selain
${GTKMM_LIBRARIES}
${WEBKITGTK_LIBRARIES}
)
INSTALL(
TARGETS
selain
RUNTIME DESTINATION
bin
)
INSTALL(
FILES
${CMAKE_CURRENT_SOURCE_DIR}/selain.desktop
DESTINATION
share/applications
)
ADD_SUBDIRECTORY(icons)