-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
28 lines (22 loc) · 1.87 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
cmake_minimum_required(VERSION 2.8.3)
project(mercury_planner)
find_package(catkin REQUIRED COMPONENTS
mk
)
add_custom_target(
mercury_planner ALL
COMMAND cmake -E make_directory ${PROJECT_NAME}/build
COMMAND cmake -E copy_if_different ${PROJECT_SOURCE_DIR}/files/Mercury-fixed.zip ${PROJECT_SOURCE_DIR}/build/Mercury-fixed.zip
COMMAND cmake -E chdir ${PROJECT_SOURCE_DIR} make -f Makefile.tarball
COMMAND cmake -E make_directory ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_LIB_DESTINATION}/${PROJECT_NAME}
COMMAND cmake -E copy_if_different ${PROJECT_SOURCE_DIR}/build/Mercury-fixed/seq-sat-mercury/src/preprocess/preprocess ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_LIB_DESTINATION}/${PROJECT_NAME}/
COMMAND cmake -E copy_if_different ${PROJECT_SOURCE_DIR}/build/Mercury-fixed/seq-sat-mercury/src/search/downward-1 ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_LIB_DESTINATION}/${PROJECT_NAME}/
#patch mercury planner
COMMAND cmake -E copy ${PROJECT_SOURCE_DIR}/patch/actions.py ${PROJECT_SOURCE_DIR}/build/Mercury-fixed/seq-sat-mercury/src/translate/pddl/actions.py
COMMAND cmake -E copy ${PROJECT_SOURCE_DIR}/patch/effects.py ${PROJECT_SOURCE_DIR}/build/Mercury-fixed/seq-sat-mercury/src/translate/pddl/effects.py
COMMAND cmake -E copy ${PROJECT_SOURCE_DIR}/patch/pddl_types.py ${PROJECT_SOURCE_DIR}/build/Mercury-fixed/seq-sat-mercury/src/translate/pddl/pddl_types.py
COMMAND cmake -E make_directory ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_PYTHON_DESTINATION}/${PROJECT_NAME}/pddl
COMMAND cmake -E copy_if_different ${PROJECT_SOURCE_DIR}/build/Mercury-fixed/seq-sat-mercury/src/translate/graph.py ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_PYTHON_DESTINATION}/${PROJECT_NAME}/pddl/
COMMAND cmake -E copy_directory ${PROJECT_SOURCE_DIR}/build/Mercury-fixed/seq-sat-mercury/src/translate/pddl ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_PYTHON_DESTINATION}/${PROJECT_NAME}/pddl/
)
catkin_package()