-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
154 lines (132 loc) · 4.09 KB
/
Copy pathCMakeLists.txt
File metadata and controls
154 lines (132 loc) · 4.09 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
cmake_minimum_required(VERSION 2.8)
project(QuteCalibrator)
find_package(X11 REQUIRED)
message(STATUS "X11_FOUND = ${X11_FOUND}")
message(STATUS "X11_INCLUDE_DIR = ${X11_INCLUDE_DIR}")
message(STATUS "X11_LIBRARIES = ${X11_LIBRARIES}")
include_directories(${X11_INCLUDE_DIR})
link_directories(${X11_LIBRARIES})
find_package(PkgConfig)
pkg_check_modules(GTKMM gtkmm-2.4) # look into FindPkgConfig.cmake
pkg_check_modules(GTK2 gtk+-2.0) # look into FindPkgConfig.cmake
link_directories(${GTKMM_LIBRARY_DIRS})
include_directories(${GTKMM_INCLUDE_DIRS})
include_directories (${GTK2_INCLUDE_DIRS})
link_directories (${GTK2_LIBRARY_DIRS})
# configure a header file to pass some of the CMake settings
# to the source code
#configure_file (
# "${PROJECT_SOURCE_DIR}"
# "${PROJECT_BINARY_DIR}"
# )
# add the binary tree to the search path for include files
# so that we will find TutorialConfig.h
include_directories("${PROJECT_SOURCE_DIR}")
include_directories("${PROJECT_SOURCE_DIR}/gui")
include_directories("${PROJECT_SOURCE_DIR}/calibrator")
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Ofast -s")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
set(HEADER calibrator.hh
calibratorbuilder.hh
lang.hh
calibrator/Evdev.hpp
calibrator/EvdevTester.hpp
calibrator/Tester.hpp
calibrator/Usbtouchscreen.hpp
calibrator/XorgPrint.hpp
rapidjson/allocators.h
rapidjson/cursorstreamwrapper.h
rapidjson/document.h
rapidjson/encodedstream.h
rapidjson/encodings.h
rapidjson/filereadstream.h
rapidjson/filewritestream.h
rapidjson/fwd.h
rapidjson/istreamwrapper.h
rapidjson/memorybuffer.h
rapidjson/memorystream.h
rapidjson/ostreamwrapper.h
rapidjson/pointer.h
rapidjson/prettywriter.h
rapidjson/rapidjson.h
rapidjson/reader.h
rapidjson/schema.h
rapidjson/stream.h
rapidjson/stringbuffer.h
rapidjson/writer.h
rapidjson/error/en.h
rapidjson/error/error.h
rapidjson/internal/biginteger.h
rapidjson/internal/diyfp.h
rapidjson/internal/dtoa.h
rapidjson/internal/ieee754.h
rapidjson/internal/itoa.h
rapidjson/internal/meta.h
rapidjson/internal/pow10.h
rapidjson/internal/regex.h
rapidjson/internal/stack.h
rapidjson/internal/strfunc.h
rapidjson/internal/strtod.h
rapidjson/internal/swap.h
rapidjson/msinttypes/inttypes.h
rapidjson/msinttypes/stdint.h
gui/gtkmm.hpp
gui/gui_common.hpp
gui/calibration.hpp
gui/testmode.hpp
gui/touchid.hpp
gui/touchempty.hpp
gui/touchfull.hpp
gui/inotifyfs.h
)
set(SOURCE calibrator.cpp
calibratorbuilder.cpp
lang.cpp
main.cpp
main_common.cpp
calibrator/Evdev.cpp
calibrator/EvdevTester.cpp
calibrator/Tester.cpp
calibrator/Usbtouchscreen.cpp
calibrator/XorgPrint.cpp
gui/gtkmm.cpp
gui/gui_common.cpp
gui/calibration.cpp
gui/testmode.cpp
gui/touchid.cpp
gui/touchempty.cpp
gui/touchfull.cpp
gui/inotifyfs.cpp
)
add_executable(../xinput_calibrator ${HEADER} ${SOURCE})
target_link_libraries(../xinput_calibrator
${X11_LIBRARIES}
${GTKMM_LIBDIR}
${GTKMM_LIBRARY_DIRS}
${X11_Xi_LIB}
-lgtkmm-2.4
-latkmm-1.6
-lgdkmm-2.4
-lgiomm-2.4
-lpangomm-1.4
-lglibmm-2.4
-lcairomm-1.0
-lsigc-2.0
-lgtk-x11-2.0
-lgdk-x11-2.0
-lpangocairo-1.0
-latk-1.0
-lcairo
-lgdk_pixbuf-2.0
-lgio-2.0
-lpangoft2-1.0
-lpango-1.0
-lgobject-2.0
-lglib-2.0
-lfontconfig
-lpthread
)