Skip to content
Snippets Groups Projects
Commit e488de0e authored by vahrenkamp's avatar vahrenkamp
Browse files

minor build update. Switching from find_file to find_path in order to server a...

minor build update. Switching from find_file to find_path in order to server a consistent variable use.

git-svn-id: http://svn.code.sf.net/p/simox/code/trunk@249 042f3d55-54a8-47e9-b7fb-15903f145c44
parent 0c0412d1
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,6 @@
# A CMakeLists.txt file for setting up a simox related project could look like this:
#
## PROJECT ( myDemo )
## SET(Simox_DIR $ENV{Simox_DIR} CACHE STRING "Choose the path to Simox (install or build).")
## FIND_PACKAGE(Simox REQUIRED)
## IF(SIMOX_USE_COIN_VISUALIZATION)
## FILE(GLOB SRCS ${PROJECT_SOURCE_DIR}/myDemo.cpp ${PROJECT_SOURCE_DIR}/myWindow.cpp)
......@@ -27,18 +26,14 @@
## SimoxQtApplication(${PROJECT_NAME} "${SRCS}" "${INCS}" "${GUI_MOC_HDRS}" "${GUI_UIS}")
## ENDIF()
MESSAGE ("START1")
#### CMAKE CONFIG
find_file( Simox_CMAKE_CONFIG SimoxConfig.cmake
"${Custom_Simox_DIR}/share/Simox/cmake"
"${Simox_DIR}/share/Simox/cmake"
"$ENV{Simox_DIR}/share/Simox/cmake"
find_path( Simox_DIR SimoxConfig.cmake
"${Custom_Simox_DIR}"
"${Simox_DIR}"
"$ENV{Simox_DIR}")
SET (Simox_CMAKE_CONFIG ${Simox_DIR}/SimoxConfig.cmake)
MESSAGE(STATUS " * Including ${Simox_CMAKE_CONFIG}")
include (${Simox_CMAKE_CONFIG})
......
......@@ -31,12 +31,13 @@
#### CMAKE CONFIG
find_file( Simox_VR_CMAKE_CONFIG VirtualRobotConfig.cmake
"${Custom_Simox_VR_DIR}/share/VirtualRobot/cmake"
"${VirtualRobot_DIR}/share/VirtualRobot/cmake"
"$ENV{VirtualRobot_DIR}/share/VirtualRobot/cmake"
"${Simox_DIR}/share/VirtualRobot/cmake"
"$ENV{Simox_DIR}/share/VirtualRobot/cmake")
find_path( VirtualRobot_DIR VirtualRobotConfig.cmake
"${Custom_Simox_VR_DIR}"
"${VirtualRobot_DIR}"
"$ENV{VirtualRobot_DIR}")
SET (Simox_VR_CMAKE_CONFIG ${VirtualRobot_DIR}/VirtualRobotConfig.cmake)
MESSAGE(STATUS " Including ${Simox_VR_CMAKE_CONFIG}")
include (${Simox_VR_CMAKE_CONFIG})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment