2007-03-05 21:27:55 +08:00
|
|
|
# INSTALL and SOURCE_GROUP commands for OSG/OT/Producer Modules
|
|
|
|
|
|
|
|
# Required Vars:
|
|
|
|
# ${LIB_NAME}
|
|
|
|
# ${LIB_PUBLIC_HEADERS}
|
|
|
|
|
|
|
|
SET(INSTALL_INCDIR include)
|
2007-03-09 22:54:41 +08:00
|
|
|
SET(INSTALL_BINDIR bin)
|
|
|
|
IF(WIN32)
|
2007-04-27 17:49:28 +08:00
|
|
|
SET(INSTALL_LIBDIR bin)
|
|
|
|
SET(INSTALL_ARCHIVEDIR lib)
|
2007-03-09 22:54:41 +08:00
|
|
|
ELSE(WIN32)
|
2007-04-27 17:49:28 +08:00
|
|
|
SET(INSTALL_LIBDIR lib${LIB_POSTFIX})
|
|
|
|
SET(INSTALL_ARCHIVEDIR lib${LIB_POSTFIX})
|
2007-03-09 22:54:41 +08:00
|
|
|
ENDIF(WIN32)
|
2007-03-05 21:27:55 +08:00
|
|
|
|
|
|
|
SET(HEADERS_GROUP "Header Files")
|
|
|
|
|
|
|
|
SOURCE_GROUP(
|
2007-04-27 17:49:28 +08:00
|
|
|
${HEADERS_GROUP}
|
|
|
|
FILES ${LIB_PUBLIC_HEADERS}
|
2007-03-05 21:27:55 +08:00
|
|
|
)
|
|
|
|
|
2007-08-30 18:41:15 +08:00
|
|
|
IF(MSVC AND OSG_MSVC_VERSIONED_DLL)
|
|
|
|
HANDLE_MSVC_DLL()
|
|
|
|
ENDIF(MSVC AND OSG_MSVC_VERSIONED_DLL)
|
2007-03-09 22:54:41 +08:00
|
|
|
|
2007-03-05 21:27:55 +08:00
|
|
|
INSTALL(
|
2007-04-27 17:49:28 +08:00
|
|
|
TARGETS ${LIB_NAME}
|
|
|
|
RUNTIME DESTINATION ${INSTALL_BINDIR}
|
|
|
|
LIBRARY DESTINATION ${INSTALL_LIBDIR}
|
|
|
|
ARCHIVE DESTINATION ${INSTALL_ARCHIVEDIR}
|
2007-03-05 21:27:55 +08:00
|
|
|
)
|
|
|
|
# FIXME: Do not run for OS X framework
|
|
|
|
INSTALL(
|
2007-04-27 17:49:28 +08:00
|
|
|
FILES ${LIB_PUBLIC_HEADERS}
|
|
|
|
DESTINATION ${INSTALL_INCDIR}/${LIB_NAME}
|
2007-03-05 21:27:55 +08:00
|
|
|
)
|