Skip to content

Commit

Permalink
Fixed installation
Browse files Browse the repository at this point in the history
  • Loading branch information
hivert committed Nov 8, 2023
1 parent 1dd240b commit 7cf15be
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 18 deletions.
1 change: 0 additions & 1 deletion .VERSION

This file was deleted.

33 changes: 18 additions & 15 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,34 +105,37 @@ if (BUILD_TESTING)
add_subdirectory(benchmark)
endif(BUILD_TESTING)

#####################

configure_file(${CMAKE_SOURCE_DIR}/.VERSION.in ${CMAKE_BINARY_DIR}/.VERSION)
###################
# pkgconfig stuff
configure_file(${CMAKE_SOURCE_DIR}/VERSION.in
${CMAKE_BINARY_DIR}/VERSION)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/hpcombi.pc.in
${CMAKE_CURRENT_BINARY_DIR}/hpcombi.pc @ONLY)

####################
# Installation

set(install_misc README.md LICENSE list_intrin.txt)
set(install_misc README.md LICENSE)
foreach(f ${install_misc})
install (FILES ${CMAKE_SOURCE_DIR}/${f}
DESTINATION share/${CMAKE_PROJECT_NAME})
DESTINATION share/${CMAKE_PROJECT_NAME})
endforeach(f)

install (FILES ${CMAKE_CURRENT_BINARY_DIR}/.VERSION DESTINATION ".")

install (
DIRECTORY ${CMAKE_SOURCE_DIR}/include/
DESTINATION include/${CMAKE_PROJECT_NAME}
FILES_MATCHING PATTERN "*.hpp")
FILES ${CMAKE_CURRENT_BINARY_DIR}/VERSION
DESTINATION share/${CMAKE_PROJECT_NAME})
install (
DIRECTORY ${CMAKE_SOURCE_DIR}/third_party/
DESTINATION third_party/${CMAKE_PROJECT_NAME}
DIRECTORY ${CMAKE_SOURCE_DIR}/include/hpcombi
DESTINATION include
FILES_MATCHING PATTERN "*.hpp")
install (
DIRECTORY ${CMAKE_SOURCE_DIR}/third_party/simde
DESTINATION include/${CMAKE_PROJECT_NAME})

###################
# pkgconfig stuff
# configure_file(${CMAKE_CURRENT_SOURCE_DIR}/hpcombi.pc.in
# ${CMAKE_CURRENT_BINARY_DIR}/hpcombi.pc @ONLY)
install (
FILES ${CMAKE_CURRENT_BINARY_DIR}/hpcombi.pc
DESTINATION pkg-config)

#################
# Packing stuff
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ else()
COMMAND ${CMAKE_COMMAND} -E echo "Done."
)

install(DIRECTORY ${CMAKE_BINARY_DIR}/doc/html
DESTINATION doc/${CMAKE_PROJECT_NAME})
# install(DIRECTORY ${CMAKE_BINARY_DIR}/doc/html
# DESTINATION doc/${CMAKE_PROJECT_NAME})

endif()

0 comments on commit 7cf15be

Please sign in to comment.