Commit 30fbcf69 authored by Floris Berendsen's avatar Floris Berendsen
Browse files

ENH: CMake Module Core scans include/ for header files and adds them to VS

project
parent 203f9089
......@@ -8,6 +8,12 @@ set( ${MODULE}_INCLUDE_DIRS
${${MODULE}_SOURCE_DIR}/ComponentInterface/include
)
file(GLOB ${MODULE}_HEADER_FILES "${${MODULE}_SOURCE_DIR}/*/include/*.*")
#@Kasper: file GLOB is generally disencouraged for source files (missing files are not detected and CMake doesn't know if the project has to be updated when due to a checkout extra source files are in the tree), but since this I think is not really an issue for header files...
#I read: CMake will figure out that they're headers; it won't try to build them. http://stackoverflow.com/questions/8316104/specify-how-cmake-creates-visual-studio-project
# Export libraries
set( ${MODULE}_LIBRARIES
${MODULE}
......@@ -29,5 +35,5 @@ set( ${MODULE}_SOURCE_FILES
# Compile library
add_library( ${MODULE} STATIC "${${MODULE}_SOURCE_FILES}" )
add_library( ${MODULE} STATIC "${${MODULE}_SOURCE_FILES}" ${${MODULE}_HEADER_FILES})
target_link_libraries( ${MODULE} ${ELASTIX_LIBRARIES} )
Supports Markdown
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