]> git.mxchange.org Git - simgear.git/blobdiff - CMakeModules/SimGearComponent.cmake
Merge branch 'next' of git.gitorious.org:fg/simgear into next
[simgear.git] / CMakeModules / SimGearComponent.cmake
index 15055628dbb7251cdadb1ef1a01bf6330afd1c11..c10e67645b1d588e68778aedcd969b5740547d83 100644 (file)
@@ -1,7 +1,7 @@
 
 macro(simgear_component name includePath sources headers)
 
-    if (${SIMGEAR_SHARED})
+    if (SIMGEAR_SHARED)
         foreach(s ${sources})
             set_property(GLOBAL
                 APPEND PROPERTY ALL_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/${s}")
@@ -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})