/
CMakeLists.txt
70 lines (58 loc) · 1.35 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
add_library( stage SHARED
world.cc
worldgui.cc
worldfile.cc
stage.cc
typetable.cc
stage.hh # get headers into IDE projects
file_manager.hh
file_manager.cc
ancestor.cc
block.cc
canvas.cc
camera.cc
gl.cc
glcolorstack.cc
model.cc
model_blinkenlight.cc
model_blobfinder.cc
model_callbacks.cc
model_camera.cc
model_fiducial.cc
model_laser.cc
model_load.cc
model_position.cc
model_props.cc
model_ranger.cc
resource.cc
texture_manager.cc
)
target_link_libraries( stage
${GLIB_LIBRARIES}
${OPENGL_LIBRARIES}
${FLTK_LIBRARIES}
${APPLE_LIBRARIES}
ltdl
)
# causes the shared library to have a version number
set_target_properties( stage PROPERTIES
VERSION ${VERSION}
)
add_executable( stagebinary main.cc )
set_target_properties( stagebinary PROPERTIES
OUTPUT_NAME stage
)
set_target_properties( stagebinary PROPERTIES
OUTPUT_NAME stage
)
target_link_libraries( stagebinary
stage
)
add_executable( test test.cc )
target_link_libraries( test stage )
INSTALL(TARGETS stagebinary stage
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
)
INSTALL(FILES stage.hh
DESTINATION include/${PROJECT_NAME}-${V_MAJOR}.${V_MINOR})