forked from jsk-ros-pkg/jsk_model_tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(eus_assimp) update files for using assimp_devel in jsk_common (jsk-r…
- Loading branch information
1 parent
76e9635
commit dbdbba8
Showing
6 changed files
with
113 additions
and
16 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
include $(shell rospack find mk)/cmake.mk | ||
EXTRA_CMAKE_FLAGS = -DUSE_ROSBUILD:BOOL=1 | ||
include $(shell rospack find mk)/cmake.mk |
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,62 @@ | ||
# http://ros.org/doc/groovy/api/catkin/html/user_guide/supposed.html | ||
cmake_minimum_required(VERSION 2.8.3) | ||
project(eus_assimp) | ||
|
||
# Load catkin and all dependencies required for this package | ||
# TODO: remove all from COMPONENTS that are not catkin packages. | ||
find_package(catkin REQUIRED COMPONENTS euslisp) | ||
|
||
set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:${CATKIN_DEVEL_PREFIX}/lib/pkgconfig") | ||
|
||
find_package(PkgConfig) | ||
pkg_check_modules(assimpdevel assimp_devel REQUIRED) | ||
# CATKIN_MIGRATION: removed during catkin migration | ||
# rosbuild_add_boost_directories() | ||
if(EXISTS ${euslisp_SOURCE_DIR}/jskeus) | ||
set(euslisp_PACKAGE_PATH ${euslisp_SOURCE_DIR}) | ||
else() | ||
set(euslisp_PACKAGE_PATH ${euslisp_PREFIX}/share/euslisp) | ||
endif() | ||
message("-- Set euslisp_PACKAGE_PATH to ${euslisp_PACKAGE_PATH}") | ||
set(euslisp_INCLUDE_DIRS ${euslisp_PACKAGE_PATH}/jskeus/eus/include) | ||
message("-- Set euslisp_INCLUDE_DIRS to ${euslisp_INCLUDE_DIRS}") | ||
include_directories(/usr/include /usr/X11R6/include ${euslisp_INCLUDE_DIRS} ${assimpdevel_INCLUDE_DIRS}) | ||
link_directories(${assimpdevel_LIBRARY_DIRS}) | ||
add_library(eus_assimp src/eus_assimp.cpp) | ||
|
||
target_link_libraries(eus_assimp ${assimpdevel_LIBRARIES}) | ||
set_target_properties(eus_assimp PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/euslisp) | ||
add_dependencies(eus_assimp libassimp_devel) | ||
|
||
# compile flags | ||
add_definitions(-O2 -Wno-write-strings -Wno-comment) | ||
add_definitions(-Di486 -DLinux -D_REENTRANT -DVERSION='\"9.00\"' -DTHREADED -DPTHREAD -DX11R6_1) | ||
add_definitions('-DREPOVERSION="\\"${REPOVERSION}\\""') | ||
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES amd64* OR | ||
${CMAKE_SYSTEM_PROCESSOR} MATCHES x86_64* ) | ||
add_definitions(-Dx86_64) | ||
else() | ||
add_definitions(-Di486) | ||
endif() | ||
|
||
if(${CMAKE_SYSTEM_NAME} MATCHES Darwin) | ||
add_definitions(-Dx86_64) | ||
set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS} -flat_namespace -undefined suppress") | ||
endif() | ||
|
||
set_target_properties(eus_assimp PROPERTIES PREFIX "" SUFFIX ".so") | ||
|
||
## LIBRARIES: libraries you create in this project that dependent projects also need | ||
## CATKIN_DEPENDS: catkin_packages dependent projects also need | ||
## DEPENDS: system dependencies of this project that dependent projects also need | ||
catkin_package( | ||
DEPENDS | ||
CATKIN_DEPENDS # euslisp TODO | ||
INCLUDE_DIRS # TODO include | ||
LIBRARIES assimp_devel # TODO | ||
) | ||
|
||
# install | ||
install(DIRECTORY euslisp | ||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} | ||
USE_SOURCE_PERMISSIONS) |
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,28 @@ | ||
<package> | ||
<name>eus_assimp</name> | ||
<version>0.1.0</version> | ||
<description>eus_assimp</description> | ||
|
||
<maintainer email="[email protected]">Yohei Kakiuchi</maintainer> | ||
|
||
<license>BSD</license> | ||
|
||
<!-- <url type="bugtracker"></url> --> | ||
|
||
<author email="[email protected]">Yohei Kakiuchi</author> | ||
|
||
<buildtool_depend>catkin</buildtool_depend> | ||
|
||
<!--build_depend>roseus</build_depend--> | ||
<build_depend>assimp_devel</build_depend> | ||
|
||
<run_depend>roseus</run_depend> | ||
<run_depend>assimp_devel</run_depend> | ||
|
||
<!-- <test_depend>euslisp</test_depend> --> | ||
<!-- <test_depend>roseus</test_depend> --> | ||
|
||
<export> | ||
<rosdoc config="rosdoc.yaml"/> | ||
</export> | ||
</package> |
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