-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
80 lines (61 loc) · 1.9 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
project(monopticon CXX)
cmake_minimum_required(VERSION 3.1)
set(CMAKE_BUILD_TYPE RELEASE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/modules/")
find_package(Protobuf)
find_package(pugixml)
set(WITH_IMGUI ON)
find_package(Corrade REQUIRED PluginManager Utility Containers)
set_directory_properties(PROPERTIES CORRADE_USE_PEDANTIC_FLAGS ON)
find_package(MagnumPlugins REQUIRED FreeTypeFont)
find_package(MagnumIntegration REQUIRED ImGui)
find_package(Magnum REQUIRED
EmscriptenApplication
GL
MeshTools
Primitives
SceneGraph
Shaders
Text
Trade
)
corrade_add_resource(monopticon_RESOURCES resources.conf)
set(monopticon_FILES
contrib/expirements/ws/newproto/epoch.pb.h
contrib/expirements/ws/newproto/epoch.pb.cc
src/evenbettercap.h
src/eth_device.cpp
src/figure.cpp
src/levelthree.cpp
src/util.cpp
src/context.cpp
src/ws_context.cpp
src/layout.cpp
src/evenbettercap.cpp
)
add_executable(monopticon ${monopticon_FILES} ${monopticon_RESOURCES})
target_link_libraries(monopticon PRIVATE
pugixml
websocket
protobuf::libprotobuf-lite
Corrade::Utility
Corrade::Containers
Magnum::Application
Magnum::EmscriptenApplication
Magnum::GL
Magnum::Magnum
Magnum::MeshTools
Magnum::Primitives
Magnum::SceneGraph
Magnum::Shaders
Magnum::Text
Magnum::Trade
MagnumIntegration::ImGui
MagnumPlugins::FreeTypeFont
)
target_compile_options(monopticon PRIVATE)
set_target_properties(monopticon
PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
install(TARGETS monopticon DESTINATION "${CMAKE_INSTALL_PREFIX}/bin/")