-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
69 lines (58 loc) · 1.6 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
cmake_minimum_required(VERSION 2.8.3)
# Suppress warning
if (POLICY CMP0048)
cmake_policy(SET CMP0048 NEW)
endif (POLICY CMP0048)
project(euslime)
find_package(catkin REQUIRED catkin_virtualenv)
find_package(Git QUIET)
catkin_package()
# Configure files
configure_file(
${PROJECT_SOURCE_DIR}/euslime.el.in
${PROJECT_SOURCE_DIR}/euslime.el
)
# git submodule update
# only when not in bloom build
if (NOT $ENV{DH_OPTIONS})
find_package(Git QUIET)
option(GIT_SUBMODULE "Check submodules during build" ON)
if(Git_FOUND AND GIT_SUBMODULE)
message(STATUS "Submodule update")
execute_process(COMMAND ${GIT_EXECUTABLE} submodule update --init
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
RESULT_VARIABLE GIT_SUBMOD_RESULT)
if(NOT GIT_SUBMOD_RESULT EQUAL "0")
message(WARNING "git submodule update failed with ${GIT_SUBMOD_RESULT}")
message(WARNING "please update submodules manually with: git submodule update --init")
endif()
endif()
endif()
catkin_generate_virtualenv()
# Install files
install(FILES
README.md
requirements.txt
# EusLisp files
slime-connection.l
slime-roseus.l
slime-toplevel.l
slime-util.l
# Emacs Lisp files
euslime-config.el
euslime.el
# Destination
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
install(FILES
slime-repl-ansi-color/README.md
slime-repl-ansi-color/LICENSE
slime-repl-ansi-color/slime-repl-ansi-color.el
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/slime-repl-ansi-color
)
# Install Python
catkin_python_setup()
catkin_install_python(PROGRAMS
scripts/euslime
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)