CMakeLists.txt 1.52 KB
Newer Older
1 2 3 4 5 6
PROJECT(liblas)

SET(liblas_VERSION_MAJOR "1")
SET(liblas_VERSION_MINOR "0")
SET(liblas_VERSION_PATCH "0")

7
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

SET(liblas_SOURCES_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
SET(liblas_SOURCES 
  ${liblas_SOURCES_DIR}/las_c_api.cpp
  ${liblas_SOURCES_DIR}/lasfile.cpp
  ${liblas_SOURCES_DIR}/laspoint.cpp
  ${liblas_SOURCES_DIR}/lasrecordheader.cpp
  ${liblas_SOURCES_DIR}/laserror.cpp
  ${liblas_SOURCES_DIR}/lasheader.cpp
  ${liblas_SOURCES_DIR}/lasreader.cpp
  ${liblas_SOURCES_DIR}/laswriter.cpp
  ${liblas_SOURCES_DIR}/detail/file.cpp
  ${liblas_SOURCES_DIR}/detail/reader10.cpp
  ${liblas_SOURCES_DIR}/detail/reader11.cpp
  ${liblas_SOURCES_DIR}/detail/reader.cpp
  ${liblas_SOURCES_DIR}/detail/writer10.cpp
  ${liblas_SOURCES_DIR}/detail/writer11.cpp
  ${liblas_SOURCES_DIR}/detail/writer.cpp
)

28 29 30 31 32 33
#IF(CMAKE_COMPILER_IS_GNUCXX)
#  FOREACH(f ${liblas_SOURCES} )
#        SET_SOURCE_FILES_PROPERTIES( ${f} PROPERTIES COMPILE_FLAGS "-Wno-long-long -pedantic -std=c++98" )
#  ENDFOREACH(f)
#ENDIF(CMAKE_COMPILER_IS_GNUCXX)

34 35
ADD_LIBRARY(otbliblas ${liblas_SOURCES} )

36 37 38 39 40 41 42 43 44 45
INSTALL(TARGETS otbliblas
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}/include/liblas/*.hpp")
INSTALL(FILES ${__files1} 
    DESTINATION ${OTB_INSTALL_INCLUDE_DIR}/Utilities/otbliblas/include/liblas
    COMPONENT Development)