set rpath properly

This commit is contained in:
Yuichi Nishiwaki 2014-05-21 15:38:12 +09:00
parent 00caa592c7
commit af921a9df8
1 changed files with 1 additions and 0 deletions

View File

@ -22,5 +22,6 @@ add_library(picrin SHARED ${PICRIN_SOURCES} ${PICLIB_SOURCE} ${FLEX_scan_OUTPUTS
target_link_libraries(picrin m ${PICRIN_CONTRIB_LIBRARIES})
# install
set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
install(TARGETS picrin DESTINATION lib)
install(DIRECTORY include/ DESTINATION include FILES_MATCHING PATTERN "*.h")