CMakeLists.txt 996 Bytes
Newer Older
Thomas Feuvrier's avatar
nomsg    
Thomas Feuvrier committed
1

Thomas Feuvrier's avatar
Thomas Feuvrier committed
2
# Sources of non-templated classes.
Thomas Feuvrier's avatar
nomsg    
Thomas Feuvrier committed
3
4
5
FILE(GLOB OTBBasicFilters_SRCS "*.cxx" )

ADD_LIBRARY(OTBBasicFilters ${OTBBasicFilters_SRCS})
6
TARGET_LINK_LIBRARIES (OTBBasicFilters OTBCommon ITKBasicFilters otbedison)
7
8
9
IF(OTB_LIBRARY_PROPERTIES)
  SET_TARGET_PROPERTIES(OTBBasicFilters PROPERTIES ${OTB_LIBRARY_PROPERTIES})
ENDIF(OTB_LIBRARY_PROPERTIES)
Thomas Feuvrier's avatar
nomsg    
Thomas Feuvrier committed
10

11
12
13
14
15
16
IF(NOT OTB_INSTALL_NO_LIBRARIES)
  INSTALL(TARGETS OTBBasicFilters
    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)
17

18
19
20
21
22
IF(NOT OTB_INSTALL_NO_DEVELOPMENT)
  FILE(GLOB __files1 "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
  FILE(GLOB __files2 "${CMAKE_CURRENT_SOURCE_DIR}/*.txx")
  INSTALL(FILES ${__files1} ${__files2}
    DESTINATION ${OTB_INSTALL_INCLUDE_DIR_CM24}/BasicFilters
23
    COMPONENT Development)
24
ENDIF(NOT OTB_INSTALL_NO_DEVELOPMENT)