gvsig-raster / org.gvsig.raster.ermapper / tags / org.gvsig.raster.ermapper-2.2.109 / org.gvsig.raster.ermapper.jni / CMakeModules / ModuleInstall.cmake @ 20979
History | View | Annotate | Download (784 Bytes)
1 |
# INSTALL and SOURCE_GROUP commands for OSG/OT/Producer Modules |
---|---|
2 |
|
3 |
# Required Vars: |
4 |
# ${LIB_NAME} |
5 |
# ${LIB_PUBLIC_HEADERS} |
6 |
|
7 |
SET(INSTALL_INCDIR include) |
8 |
SET(INSTALL_BINDIR bin) |
9 |
IF(WIN32) |
10 |
SET(INSTALL_BINDIR .) |
11 |
SET(INSTALL_LIBDIR .) |
12 |
SET(INSTALL_ARCHIVEDIR lib) |
13 |
ELSE(WIN32) |
14 |
SET(INSTALL_BINDIR .) |
15 |
SET(INSTALL_LIBDIR .) |
16 |
SET(INSTALL_ARCHIVEDIR lib) |
17 |
ENDIF(WIN32) |
18 |
|
19 |
SET(HEADERS_GROUP "Header Files") |
20 |
|
21 |
SOURCE_GROUP( |
22 |
${HEADERS_GROUP} |
23 |
FILES ${LIB_PUBLIC_HEADERS} |
24 |
) |
25 |
|
26 |
|
27 |
INSTALL( |
28 |
TARGETS ${LIB_NAME} |
29 |
RUNTIME DESTINATION ${INSTALL_BINDIR} |
30 |
LIBRARY DESTINATION ${INSTALL_LIBDIR} |
31 |
ARCHIVE DESTINATION ${INSTALL_ARCHIVEDIR} |
32 |
) |
33 |
|
34 |
|
35 |
|
36 |
# FIXME: Do not run for OS X framework |
37 |
#INSTALL( |
38 |
# FILES ${LIB_PUBLIC_HEADERS} |
39 |
# DESTINATION ${INSTALL_INCDIR}/${LIB_NAME} |
40 |
#) |