Commit 51eb28e7 authored by GILLES Sebastien's avatar GILLES Sebastien

#1217 CMake: also install the includes with the install command.

parent e4d5ee8c
......@@ -67,9 +67,15 @@ include(PostProcessing/CMakeLists.txt)
include(ModelInstances/CMakeLists.txt)
include(Test/CMakeLists.txt)
# How to get tge list of files related to a library. But XCode project built is unstable; something is probably amiss in what I do.
# get_property(core_sources TARGET ${MOREFEM_CORE} PROPERTY SOURCES)
# string(REPLACE "//" " /" core_sources ${core_sources})
# source_group(TREE ${CMAKE_CURRENT_LIST_DIR}/Core FILES ${core_sources})
#get_property(core_sources TARGET ${MOREFEM_CORE} PROPERTY SOURCES)
#string(REPLACE "//" " /" core_sources ${core_sources})
message("LISTDIR " ${CMAKE_CURRENT_LIST_DIR})
install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/ DESTINATION ${MOREFEM_INSTALL_DIR_INCL}
FILES_MATCHING PATTERN "*.hpp")
install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/ DESTINATION ${MOREFEM_INSTALL_DIR_INCL}
FILES_MATCHING PATTERN "*.hxx")
......@@ -2,12 +2,12 @@ add_library(MoReFEM4RivlinCube_lib ${LIBRARY_TYPE} "")
target_sources(MoReFEM4RivlinCube_lib
PRIVATE
"${CMAKE_CURRENT_LIST_DIR}/Model.cpp" /
"${CMAKE_CURRENT_LIST_DIR}/Model.cpp"
"${CMAKE_CURRENT_LIST_DIR}/VariationalFormulation.cpp"
PUBLIC
"${CMAKE_CURRENT_LIST_DIR}/InputParameterList.hpp" /
"${CMAKE_CURRENT_LIST_DIR}/Model.hpp" /
"${CMAKE_CURRENT_LIST_DIR}/Model.hxx" /
"${CMAKE_CURRENT_LIST_DIR}/InputParameterList.hpp"
"${CMAKE_CURRENT_LIST_DIR}/Model.hpp"
"${CMAKE_CURRENT_LIST_DIR}/Model.hxx"
"${CMAKE_CURRENT_LIST_DIR}/VariationalFormulation.hpp"
"${CMAKE_CURRENT_LIST_DIR}/VariationalFormulation.hxx"
)
......@@ -28,4 +28,4 @@ target_link_libraries(MoReFEM4RivlinCubeEnsightOutput
MoReFEM4RivlinCube_lib
MoReFEMPostProcessing_lib)
morefem_install(MoReFEM4RivlinCubeEnsightOutput)
\ No newline at end of file
morefem_install(MoReFEM4RivlinCubeEnsightOutput)
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