Skip to content
Snippets Groups Projects
Commit 0a0d7505 authored by Guillem Alenyà's avatar Guillem Alenyà
Browse files

install path option

parent 188191bc
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,14 @@ PROJECT(segway-rmp-400)
SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/lib)
SET(CMAKE_INSTALL_PREFIX /usr/local)
IF ("${INSTALL_DIR}" STREQUAL "")
MESSAGE ("[INSTALL] set install_dir to /usr/local")
SET(CMAKE_INSTALL_PREFIX /usr/local)
ELSE ()
MESSAGE ("[INSTALL] set install_dir to input ${INSTALL_DIR}")
SET(CMAKE_INSTALL_PREFIX ${INSTALL_DIR})
ENDIF ()
IF (NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE "DEBUG")
......
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