CMakeLists.txt 1.28 KB
Newer Older
1
2
3
FILE(GLOB OTBProjections_SRCS "*.cxx" )

ADD_LIBRARY(OTBProjections ${OTBProjections_SRCS})
4
5
# TARGET_LINK_LIBRARIES(OTBProjections OTBIO otbossimplugins)
TARGET_LINK_LIBRARIES(OTBProjections OTBIO)
6
7
8
IF( OTB_USE_CURL )
    TARGET_LINK_LIBRARIES (OTBProjections ${CURL_LIBRARY})
ENDIF( OTB_USE_CURL )
9
10
11
IF(OTB_LIBRARY_PROPERTIES)
  SET_TARGET_PROPERTIES(OTBProjections PROPERTIES ${OTB_LIBRARY_PROPERTIES})
ENDIF(OTB_LIBRARY_PROPERTIES)
12

13
14
15
16
17
18
IF(NOT OTB_INSTALL_NO_LIBRARIES)
  INSTALL(TARGETS OTBProjections
    RUNTIME DESTINATION ${OTB_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
    LIBRARY DESTINATION ${OTB_INSTALL_LIB_DIR_CM24} COMPONENT RuntimeLibraries
    ARCHIVE DESTINATION ${OTB_INSTALL_LIB_DIR_CM24} COMPONENT Development)
ENDIF(NOT OTB_INSTALL_NO_LIBRARIES)
19

20
21
22
23
IF(NOT OTB_INSTALL_NO_DEVELOPMENT)
  FILE(GLOB __files1 "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
  FILE(GLOB __files2 "${CMAKE_CURRENT_SOURCE_DIR}/*.txx")
  IF( NOT OTB_USE_CURL )
Thomas Feuvrier's avatar
Thomas Feuvrier committed
24
25
    LIST(REMOVE_ITEM __files1 "${CMAKE_CURRENT_SOURCE_DIR}/otbPlaceNameToLonLat.h" )
    LIST(REMOVE_ITEM __files2 "${CMAKE_CURRENT_SOURCE_DIR}/otbPlaceNameToLonLat.txx" )
26
27
28
  ENDIF( NOT OTB_USE_CURL )
  INSTALL(FILES ${__files1} ${__files2}
    DESTINATION ${OTB_INSTALL_INCLUDE_DIR_CM24}/Projections
29
    COMPONENT Development)
30
ENDIF(NOT OTB_INSTALL_NO_DEVELOPMENT)