CMakeLists.txt 950 Bytes
Newer Older
Jordi Inglada's avatar
Jordi Inglada committed
1
2
3
4
5
6
# Sources of non-templated classes.


FILE(GLOB OTBLearning_SRCS "*.cxx" )

ADD_LIBRARY(OTBLearning ${OTBLearning_SRCS})
7
TARGET_LINK_LIBRARIES (OTBLearning OTBCommon otbsvm)
8
9
10
IF(OTB_LIBRARY_PROPERTIES)
  SET_TARGET_PROPERTIES(OTBLearning PROPERTIES ${OTB_LIBRARY_PROPERTIES})
ENDIF(OTB_LIBRARY_PROPERTIES)
Jordi Inglada's avatar
Jordi Inglada committed
11

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

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")
  INSTALL(FILES ${__files1} ${__files2}
    DESTINATION ${OTB_INSTALL_INCLUDE_DIR_CM24}/Learning
24
    COMPONENT Development)
25
ENDIF(NOT OTB_INSTALL_NO_DEVELOPMENT)