Skip to content

Commit

Permalink
[Issue JdeRobot#485] Merge branch 'global/cmake/485-cmake_paths' into…
Browse files Browse the repository at this point in the history
… libs/easyiceconfig/485-cmake_paths
  • Loading branch information
lr-morales committed Aug 30, 2016
2 parents ca9d26d + d615ed3 commit 50feb61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR}/src)
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/src/interfaces/libJderobotInterfaces.so DESTINATION ${CMAKE_INSTALL_PREFIX}/jderobot COMPONENT core)

# Install python files
FILE(GLOB_RECURSE HEADERS_FILES ${CMAKE_CURRENT_BINARY_DIR}/src/stable/interfaces/python/*py)
FILE(GLOB_RECURSE HEADERS_FILES ${CMAKE_CURRENT_BINARY_DIR}/src/interfaces/python/*py)
FOREACH(header ${HEADERS_FILES})
INSTALL(FILES ${header} DESTINATION ${PYTHON_MODULE_PATH}/jderobot/ COMPONENT core)
ENDFOREACH(header)
Expand All @@ -162,7 +162,7 @@ ENDFOREACH(lib)
FILE(GLOB_RECURSE HEADERS_FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/libs/*.h)
FOREACH(currentSourceFile ${HEADERS_FILES})
string(REGEX REPLACE "(.*/).*.h" "\\1" new_source1 ${currentSourceFile})
string(REGEX REPLACE "${CMAKE_CURRENT_SOURCE_DIR}/src/stable/libs" "" new_source2 ${new_source1})
string(REGEX REPLACE "${CMAKE_CURRENT_SOURCE_DIR}/src/libs" "" new_source2 ${new_source1})
INSTALL (FILES ${currentSourceFile} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/jderobot/${new_source2} COMPONENT core)
ENDFOREACH(currentSourceFile)

Expand Down

0 comments on commit 50feb61

Please sign in to comment.