CMakeLists.txt 618 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Sources of non-templated classes.

FILE(GLOB OTBFusion_SRCS "*.cxx" )

ADD_LIBRARY(OTBFusion ${OTBFusion_SRCS})
TARGET_LINK_LIBRARIES (OTBFusion ITKCommon)

INSTALL(TARGETS OTBFusion
RUNTIME DESTINATION ${OTB_INSTALL_BIN_DIR} COMPONENT RuntimeLibraries
LIBRARY DESTINATION ${OTB_INSTALL_LIB_DIR} COMPONENT RuntimeLibraries
ARCHIVE DESTINATION ${OTB_INSTALL_LIB_DIR} COMPONENT 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}/Fusion
    COMPONENT Development)