Install in /usr/local instead of /usr
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2724 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
a7cc3dab81
commit
b312749bab
25 changed files with 46 additions and 45 deletions
|
|
@ -23,7 +23,7 @@ if(DOXYGEN_FOUND)
|
|||
"${SMP_DOC_DIR}/${SMP_DOC_CONFIG_FILE}")
|
||||
install(
|
||||
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
DESTINATION share${INSTALL_SUB_DIR}/smp COMPONENT doc
|
||||
DESTINATION local/share${INSTALL_SUB_DIR}/smp COMPONENT doc
|
||||
PATTERN "CMakeFiles" EXCLUDE
|
||||
PATTERN "cmake_install.cmake" EXCLUDE
|
||||
PATTERN "CTestTestfile.cmake" EXCLUDE
|
||||
|
|
|
|||
|
|
@ -22,21 +22,21 @@ set (SMP_FILE
|
|||
|
||||
add_library(smp STATIC ${SMP_FILE})
|
||||
|
||||
install(TARGETS smp ARCHIVE DESTINATION ${LIB} COMPONENT libraries)
|
||||
install(TARGETS smp ARCHIVE DESTINATION local/${LIB} COMPONENT libraries)
|
||||
|
||||
######################################################################################
|
||||
### 3) Look for headers
|
||||
######################################################################################
|
||||
|
||||
file(GLOB HDRS smp *.h)
|
||||
install(FILES ${HDRS} DESTINATION include${INSTALL_SUB_DIR}/smp COMPONENT headers)
|
||||
install(FILES ${HDRS} DESTINATION local/include${INSTALL_SUB_DIR}/smp COMPONENT headers)
|
||||
|
||||
######################################################################################
|
||||
### 4) Install directories
|
||||
######################################################################################
|
||||
|
||||
install(DIRECTORY MWAlgo
|
||||
DESTINATION include${INSTALL_SUB_DIR}/smp
|
||||
DESTINATION local/include${INSTALL_SUB_DIR}/smp
|
||||
COMPONENT headers
|
||||
FILES_MATCHING PATTERN "*.h"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -27,10 +27,11 @@ foreach (test ${TEST_LIST})
|
|||
add_executable(${test} ${T_${test}_SOURCES})
|
||||
target_link_libraries(${test} smp eo eoutils)
|
||||
add_test(${test} ${test})
|
||||
install(TARGETS ${test} RUNTIME DESTINATION local/share${INSTALL_SUB_DIR}/smp/test COMPONENT tests)
|
||||
endforeach (test)
|
||||
|
||||
execute_process(
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/t-data.dat
|
||||
${CMAKE_CURRENT_BINARY_DIR}/t-data.dat)
|
||||
|
||||
install(TARGETS ${CMAKE_CURRENT_SOURCE_DIR}/t-data.dat RUNTIME DESTINATION local/share${INSTALL_SUB_DIR}/smp/test COMPONENT tests)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue