-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
103 lines (81 loc) · 2.86 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# The name of our project is "Pallet_Viewer"
# root source directory = ${PALLET_VIEWER_DIR}
# root binary directory = ${PALLET_VIEWER_DIR}
cmake_minimum_required (VERSION 2.6)
project (pallet_viewer)
SET(CPACK_PACKAGE_VERSION_MAJOR "0")
SET(CPACK_PACKAGE_VERSION_MINOR "0")
SET(CPACK_PACKAGE_VERSION_PATCH "90")
SET(CPACK_PACKAGE_NAME "pallet_viewer")
SET(CPACK_SYSTEM_NAME "i386")
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "glutg3 (>= 3.7), glutg3-dev (>= 3.7)")
set (CMAKE_VERBOSE_MAKEFILE OFF)
if(NOT MSVC)
set (CMAKE_CXX_FLAGS "-g -O0 -Wall -Wextra -Wpointer-arith -fno-default-inline -fno-implicit-inline-templates")
endif(NOT MSVC)
# add_subdirectory (gl)
option (PACKLIST_UNITTEST "UnitTest to parse a .packlist.xml" OFF)
option (ORDERLIST_UNITTEST "UnitTest to parse a .order.xml" OFF)
if (PACKLIST_UNITTEST)
set_property( SOURCE main.cpp
APPEND PROPERTY COMPILE_DEFINITIONS PACKLIST_UNITTEST
)
endif (PACKLIST_UNITTEST)
if (ORDERLIST_UNITTEST)
set_property( SOURCE main.cpp
APPEND PROPERTY COMPILE_DEFINITIONS ORDERLIST_UNITTEST
)
endif (ORDERLIST_UNITTEST)
set( SRC_GUI
gl/view
gl/glcamera
gl/glstdlib
gl/main
)
set ( SRC_FILES
packlist
response
xml_parser
viewer
)
set ( SRC_FILES_MOTION
packlist
response
xml_parser
motion_planner
)
set ( SRC
${SRC_GUI}
${SRC_FILES}
)
set ( HEADERS
./gl
/usr/include
)
find_package(GLUT)
find_package(OpenGL)
set(PROGRAMS oglfirst pointers)
set(CORELIBS ${GLUT_LIBRARY} ${OPENGL_LIBRARY} m)
include_directories (${HEADERS})
add_executable (pallet_viewer ${SRC})
target_link_libraries (pallet_viewer ${CORELIBS} )
add_executable (pallet_motion_planner ${SRC_FILES_MOTION})
target_link_libraries (pallet_motion_planner ${CORELIBS} )
INSTALL(TARGETS pallet_viewer RUNTIME DESTINATION bin)
INSTALL(TARGETS pallet_motion_planner RUNTIME DESTINATION bin)
INSTALL(FILES doc/pallet_viewer.1 DESTINATION share/man/man1)
INSTALL(FILES ex1.order.xml DESTINATION share/vmac)
INSTALL(FILES ex1.packlist.xml DESTINATION share/vmac)
INSTALL(FILES ex2.order.xml DESTINATION share/vmac)
INSTALL(FILES ex2.packlist.xml DESTINATION share/vmac)
SET(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
SET(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}")
SET(CPACK_PACKAGE_CONTACT "[email protected]")
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Pushkar Kolhe (${CPACK_PACKAGE_CONTACT})")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Pallet Viewer and Benchmarking for the ICRA VMAC 2010 competition.")
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/ReadMe.txt")
SET(CPACK_PACKAGE_VENDOR "VMAC 2010, NIST and GT")
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/Copyright.txt")
SET(CPACK_GENERATOR "DEB")
SET(CPACK_PACKAGE_EXECUTABLES "pallet_viewer" "${CMAKE_CURRENT_SOURCE_DIR}/build/pallet_viewer")
INCLUDE(CPack)