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

Improve install headers

parent 28b4c5d9
...@@ -82,28 +82,25 @@ INCLUDE_DIRECTORIES( ...@@ -82,28 +82,25 @@ INCLUDE_DIRECTORIES(
${SCALFMM_INCLUDES} ${SCALFMM_INCLUDES}
) )
#########################################################################
#
# Install lib # Install lib
install( TARGETS scalfmm DESTINATION lib ) install( TARGETS scalfmm DESTINATION lib )
#
# Install header # Install headers
SET(my_include_dirs "." "Adaptive" SET(my_include_dirs "." "Adaptive"
"Arranger" "Components" "Containers" "Core" "Extensions" "Arranger" "Components" "Containers" "Core" "Extensions"
"Files" "Utils" ) "Files" "Utils" )
INSTALL( DIRECTORY "Kernels" DESTINATION include FILES_MATCHING PATTERN "*.hpp") INSTALL( DIRECTORY "Kernels" DESTINATION include FILES_MATCHING PATTERN "*.hpp")
INSTALL( DIRECTORY "GroupTree" DESTINATION include ) INSTALL( DIRECTORY "GroupTree" DESTINATION include )
# FILES_MATCHING PATTERN "*.hpp" PATTERN "*.h" PATTERN "*.cu" PATTERN "*.cu") # FILES_MATCHING PATTERN "*.hpp" PATTERN "*.h" PATTERN "*.cu" PATTERN "*.cu")
FOREACH(my_dir ${my_include_dirs}) FOREACH(my_dir ${my_include_dirs})
file(GLOB INSTALL( DIRECTORY ${my_dir} DESTINATION include
hpp_in_dir FILES_MATCHING PATTERN "*.hpp" PATTERN "*.h")
${my_dir}/*.hpp ${my_dir}/*.h
)
INSTALL( FILES ${hpp_in_dir} DESTINATION include/${my_dir} )
ENDFOREACH() ENDFOREACH()
INSTALL( FILES "${SCALFMM_BINARY_DIR}/Src/ScalFmmConfig.h" DESTINATION include )
#
INSTALL( FILES "${SCALFMM_BINARY_DIR}/Src/ScalFmmConfig.h" DESTINATION include/${my_dir} ) #########################################################################
#
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