Skip to content
Snippets Groups Projects
Commit aa6f864e authored by Floris Berendsen's avatar Floris Berendsen
Browse files

Merge branch 'ELASTIX-43-Show-header-files-in-Visual-Studio' into...

Merge branch 'ELASTIX-43-Show-header-files-in-Visual-Studio' into ELASTIX-44-Unite-Interface-framework-with-Factory-framework
parents 951d2a00 30fbcf69
No related branches found
No related tags found
No related merge requests found
......@@ -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} )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment