forked from morse-simulator/morse
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'object_modules' (finally!)
Conflicts: .gitignore components/sensors/cameras/Camera_Module.py.DEMO components/sensors/cameras/Camera_Module.py.ORIGINAL components/sensors/thermometer/Temperature_Module.py examples/morse/clients/atrv/ATRV_Client.py scenarii/Setup_Morse_Paths.py scenarii/action/action-3.blend scenarii/morse_default.blend scenarii/rosace-2.0/rosace_demo-2.0.blend
- Loading branch information
Showing
317 changed files
with
3,716 additions
and
10,177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
cmake_minimum_required(VERSION 2.6) | ||
|
||
set(PACKAGE_NAME morse) | ||
|
||
option(BUILD_YARP2_SUPPORT "Build yarp framework support" OFF) | ||
option(BUILD_POCOLIBS_SUPPORT "Build pocolibs framework support" OFF) | ||
|
||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/config/) | ||
find_package(PkgConfig REQUIRED) | ||
|
||
find_package(Python26Interp REQUIRED) | ||
find_package(PythonLibs REQUIRED) | ||
|
||
EXECUTE_PROCESS(COMMAND | ||
${PYTHON_EXECUTABLE} -c "import distutils.sysconfig, sys; sys.stdout.write(distutils.sysconfig.get_python_lib(0,0,\"\"))" | ||
OUTPUT_VARIABLE PYTHON_INSTALL | ||
ERROR_VARIABLE PYTHON_STDERR | ||
RESULT_VARIABLE PYTHON_ERR | ||
) | ||
|
||
SET(PYTHON_INSTDIR ${CMAKE_INSTALL_PREFIX}/${PYTHON_INSTALL}) | ||
MESSAGE(STATUS "will install python files in ${PYTHON_INSTDIR}") | ||
|
||
if (NOT PYTHONINTERP_FOUND) | ||
MESSAGE(FATAL_ERROR "Can't find python 2.6 on your system") | ||
endif(NOT PYTHONINTERP_FOUND) | ||
if (BUILD_YARP2_SUPPORT) | ||
find_package(YARP2 REQUIRED) | ||
|
||
EXECUTE_PROCESS(COMMAND | ||
${PYTHON_EXECUTABLE} -c "import yarp;" | ||
RESULT_VARIABLE YARP_PY_ERR | ||
) | ||
if (YARP_PY_ERR) | ||
MESSAGE(FATAL_ERROR "BUILD_YARP_SUPPORT is required, but can't find yarp python binding") | ||
endif (YARP_PY_ERR) | ||
endif(BUILD_YARP2_SUPPORT) | ||
|
||
if (BUILD_POCOLIBS_SUPPORT) | ||
pkg_check_modules(POCOLIBS REQUIRED pocolibs) | ||
find_package(SWIG REQUIRED) | ||
endif(BUILD_POCOLIBS_SUPPORT) | ||
|
||
|
||
ADD_SUBDIRECTORY(src) | ||
INSTALL (DIRECTORY doc data examples | ||
DESTINATION ${CMAKE_INSTALL_PREFIX}/share | ||
REGEX .*blend. EXCLUDE | ||
REGEX .*py. EXCLUDE | ||
) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.