fix install paths

This commit is contained in:
Christian Zimmermann 2023-01-20 15:58:52 +01:00
parent 66d5e5b741
commit 07428d1e6d
4 changed files with 4 additions and 10 deletions

View file

@ -7,4 +7,4 @@ if(ENABLE_hdf5)
add_subdirectory(opt/hdf5)
endif()
install(DIRECTORY include/ DESTINATION ${INSTALL_PATH}/include)
install(DIRECTORY include/ DESTINATION ${INSTALL_PATH}/include/cnorxz)

View file

@ -26,9 +26,7 @@ set_target_properties(cnorxz PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
# )
#set_target_properties(cnorxz_obj PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
install(TARGETS cnorxz
ARCHIVE DESTINATION ${INSTALL_PATH}/lib
LIBRARY DESTINATION ${INSTALL_PATH}/lib)
install(TARGETS cnorxz LIBRARY DESTINATION ${INSTALL_PATH}/lib)
#install(TARGETS cnorxz_static
# ARCHIVE DESTINATION ${INSTALL_PATH}/lib

View file

@ -13,5 +13,4 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
add_subdirectory(lib)
add_subdirectory(tests)
set(HDF5_INSTALL_PATH ${INSTALL_PATH}/hdf5)
install(DIRECTORY include/ DESTINATION ${HDF5_INSTALL_PATH}/include)
install(DIRECTORY include/ DESTINATION ${INSTALL_PATH}/include/cnorxz/hdf5)

View file

@ -16,7 +16,4 @@ add_library(cnorxzhdf5 SHARED
)
set_target_properties(cnorxzhdf5 PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
install(TARGETS cnorxz
ARCHIVE DESTINATION ${HDF5_INSTALL_PATH}/lib
LIBRARY DESTINATION ${HDF5_INSTALL_PATH}/lib
)
install(TARGETS cnorxzhdf5 LIBRARY DESTINATION ${INSTALL_PATH}/lib)