Skip to content

Commit

Permalink
Merge pull request #751 from jsk-ros-pkg/ros-o
Browse files Browse the repository at this point in the history
CMakeLists.txt: enable to compile with system installed euslisp/jskeus
  • Loading branch information
k-okada authored Jan 7, 2025
2 parents e155a9c + 0101925 commit b7ba716
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions roseus/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,19 @@ message (STATUS "Build repo revision: ${REPOVERSION}")
# CATKIN_MIGRATION: removed during catkin migration
# rosbuild_add_boost_directories()

find_package(euslisp QUIET)
find_package(jskeus QUIET)
find_program(EUS_EXECUTABLE eus)
find_program(JSKEUS_EXECUTABLE irteus)
message("${euslisp_FOUND} ${jskeus_FOUND} ${EUS_EXECUTABLE} ${JSKEUS_EXECUTABLE} ${JSKEUS_EXECUTABLE}")
if(APPLE)
if(NOT EXISTS /usr/local/opt/jskeus/eus) # $EUSDIR in OS X
message(FATAL_ERROR "jskeus is not installed via Homebrew, Please run `brew install homebrew/x11/jskeus`")
endif()
set(euslisp_INCLUDE_DIRS /usr/local/opt/jskeus/eus/include)
elseif((NOT ${euslisp_FOUND}) AND (NOT ${jskeus_FOUND}) AND (EXISTS ${EUS_EXECUTABLE}) AND (EXISTS ${JSKEUS_EXECUTABLE}) AND (EXISTS /usr/share/euslisp/include))
set(euslisp_PACKAGE_PATH /usr/share/euslisp)
set(euslisp_INCLUDE_DIRS /usr/share/euslisp/include)
else()
find_package(euslisp REQUIRED)
find_package(jskeus REQUIRED)
Expand Down

0 comments on commit b7ba716

Please sign in to comment.