set(libName "sg${name}")
add_library(${libName} STATIC ${sources} ${headers})
- install (TARGETS ${libName} ARCHIVE DESTINATION lib${LIB_SUFFIX})
- install (FILES ${headers} DESTINATION include/simgear/${includePath})
+ install (TARGETS ${libName} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()
+
+ install (FILES ${headers} DESTINATION include/simgear/${includePath})
endmacro()
function(simgear_component name includePath sources headers)