]> git.mxchange.org Git - simgear.git/commitdiff
cmake: Add headers to library components
authorAndreas Gaeb <a.gaeb@web.de>
Sun, 11 Sep 2011 10:18:03 +0000 (12:18 +0200)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Wed, 14 Sep 2011 06:56:17 +0000 (08:56 +0200)
Add headers to library components so that they get
included into the IDE project files.

CMakeModules/SimGearComponent.cmake

index 3eb5740acc5937d4b2ab1600e08a3419d817bc9e..c10e67645b1d588e68778aedcd969b5740547d83 100644 (file)
@@ -14,7 +14,7 @@ macro(simgear_component name includePath sources headers)
         
     else()
         set(libName "sg${name}")
-        add_library(${libName} STATIC ${sources} )
+        add_library(${libName} STATIC ${sources} ${headers})
 
         install (TARGETS ${libName} ARCHIVE DESTINATION lib${LIB_SUFFIX})
         install (FILES ${headers}  DESTINATION include/simgear/${includePath})