-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
76 lines (69 loc) · 1.96 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
cmake_minimum_required(VERSION 3.0.0)
project(wxKnitplot VERSION 0.1.0)
find_package(Protobuf REQUIRED)
include_directories(${Protobuf_INCLUDE_DIRS})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
link_libraries(${Protobuf_LIBRARIES})
find_package(wxWidgets REQUIRED)
include_directories(${wxWidgets_INCLUDE_DIRS})
link_libraries(${wxWidgets_LIBRARIES})
include(${wxWidgets_USE_FILE})
find_package(gflags REQUIRED)
include_directories(${gflags_INCLUDE_DIRS})
link_libraries(${gflags_LIBRARIES})
PROTOBUF_GENERATE_CPP(PROTO_SRC PROTO_HEADER src/storage/chart.proto)
include_directories(src)
set(SOURCES
${PROTO_SRC}
${PROTO_HEADER}
src/gui/library_panel.h
src/gui/chart_panel.h
src/gui/preview_panel.h
src/gui/library_panel.cc
src/gui/knitplot.h
src/gui/wx_renderer.h
src/gui/chart_panel.cc
src/gui/wx_renderer.cc
src/gui/preview_panel.cc
src/gui/menu_builder.h
src/model/library.h
src/model/spline.cc
src/model/style.h
src/model/spline.h
src/model/chart_parser.cc
src/model/chart_parser.h
src/model/line.h
src/model/color.cc
src/model/chart.cc
src/model/polygon.cc
src/model/shape_base.h
src/model/graphic.h
src/model/point.cc
src/model/listener.h
src/model/line.cc
src/model/shape.h
src/model/chart.h
src/model/rectangle.cc
src/model/svg.h
src/model/circle.cc
src/model/library.cc
src/model/style.cc
src/model/point.h
src/model/graphic.cc
src/model/text.cc
src/model/color.h
src/model/renderer.h
src/model/circle.h
src/model/polygon.h
src/model/rectangle.h
src/model/shape.cc
src/model/svg.cc
src/model/chart_listener.h
src/model/text.h
)
add_executable(knitplot src/gui/knitplot.cc ${SOURCES})
add_executable(proto2json src/cli/proto2json.cc ${SOURCES})
add_executable(chart2svg src/cli/chart2svg.cc ${SOURCES})
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)