X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=CMakeModules%2FSimGearComponent.cmake;h=c10e67645b1d588e68778aedcd969b5740547d83;hb=3849de1931819a5be27c47987695fe6fae35cfa6;hp=15055628dbb7251cdadb1ef1a01bf6330afd1c11;hpb=b6a20fd6e44f58eaa50940596177c7f937b84bd3;p=simgear.git diff --git a/CMakeModules/SimGearComponent.cmake b/CMakeModules/SimGearComponent.cmake index 15055628..c10e6764 100644 --- a/CMakeModules/SimGearComponent.cmake +++ b/CMakeModules/SimGearComponent.cmake @@ -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})