Skip to content
Snippets Groups Projects
Commit d1000ac8 authored by Julien Malik's avatar Julien Malik
Browse files

ENH: fix CMakeLists

parent 80df7251
Branches
Tags
No related merge requests found
file(GLOB srcs "*.cxx")
add_library(OTBWrapperCore ${srcs} ${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_SOURCE_DIR}/Code/Common)
target_link_libraries(OTBWrapperCore OTBCommon OTBIO)
install(TARGETS OTBWrapperCore
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib/static)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION include/otbapp
FILES_MATCHING PATTERN "*.h")
# Sources of non-templated classes.
FILE(GLOB OTBApplicationEngine_SRCS "*.cxx" )
ADD_LIBRARY(OTBApplicationEngine ${OTBApplicationEngine_SRCS})
TARGET_LINK_LIBRARIES (OTBApplicationEngine OTBCommon OTBIO)
IF(OTB_LIBRARY_PROPERTIES)
SET_TARGET_PROPERTIES(OTBApplicationEngine PROPERTIES ${OTB_LIBRARY_PROPERTIES})
ENDIF(OTB_LIBRARY_PROPERTIES)
IF(NOT OTB_INSTALL_NO_LIBRARIES)
INSTALL(TARGETS OTBApplicationEngine
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)
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}/ApplicationEngine
COMPONENT Development)
ENDIF(NOT OTB_INSTALL_NO_DEVELOPMENT)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment