set(libName "sg${name}")
add_library(${libName} STATIC ${sources} ${headers})
- install (TARGETS ${libName} ARCHIVE DESTINATION lib${LIB_SUFFIX})
+ install (TARGETS ${libName} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()
install (FILES ${headers} DESTINATION include/simgear/${includePath})
# set_property(TARGET SimGearCore PROPERTY PUBLIC_HEADER "${publicHeaders}")
set_property(TARGET SimGearCore PROPERTY LINKER_LANGUAGE CXX)
- target_link_libraries(SimGearCore ${ZLIB_LIBRARY} ${RT_LIBRARY})
- install(TARGETS SimGearCore LIBRARY DESTINATION lib${LIB_SUFFIX})
-
+ target_link_libraries(SimGearCore ${ZLIB_LIBRARY} ${RT_LIBRARY})
+ install(TARGETS SimGearCore LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
+
if(NOT SIMGEAR_HEADLESS)
if(LIBSVN_FOUND)
add_definitions(${APR_CFLAGS})
target_link_libraries(SimGearScene ${LIBSVN_LIBRARIES})
endif(LIBSVN_FOUND)
- install(TARGETS SimGearScene LIBRARY DESTINATION lib${LIB_SUFFIX})
+ install(TARGETS SimGearScene LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()
endif(SIMGEAR_SHARED)