Commit 1377e389 authored by COULAUD Olivier's avatar COULAUD Olivier

Improve install headers

parent 28b4c5d9
......@@ -82,28 +82,25 @@ INCLUDE_DIRECTORIES(
${SCALFMM_INCLUDES}
)
#########################################################################
#
# Install lib
install( TARGETS scalfmm DESTINATION lib )
# Install header
#
# Install headers
SET(my_include_dirs "." "Adaptive"
"Arranger" "Components" "Containers" "Core" "Extensions"
"Files" "Utils" )
INSTALL( DIRECTORY "Kernels" DESTINATION include FILES_MATCHING PATTERN "*.hpp")
INSTALL( DIRECTORY "GroupTree" DESTINATION include )
# FILES_MATCHING PATTERN "*.hpp" PATTERN "*.h" PATTERN "*.cu" PATTERN "*.cu")
FOREACH(my_dir ${my_include_dirs})
file(GLOB
hpp_in_dir
${my_dir}/*.hpp ${my_dir}/*.h
)
INSTALL( FILES ${hpp_in_dir} DESTINATION include/${my_dir} )
INSTALL( DIRECTORY ${my_dir} DESTINATION include
FILES_MATCHING PATTERN "*.hpp" PATTERN "*.h")
ENDFOREACH()
INSTALL( FILES "${SCALFMM_BINARY_DIR}/Src/ScalFmmConfig.h" DESTINATION include/${my_dir} )
INSTALL( FILES "${SCALFMM_BINARY_DIR}/Src/ScalFmmConfig.h" DESTINATION include )
#
#########################################################################
#
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment