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

install path option

parent 8564d57b
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,14 @@ PROJECT(dynamixel) ...@@ -11,7 +11,14 @@ PROJECT(dynamixel)
SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/bin) SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/lib) 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) IF (NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE "DEBUG") 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