Commit 6cd312b4e4780c6ea3c86f8e4d413f89108d4833

Authored by Pierre Lassalle
1 parent d90f1700
Exists in master

Copyright + CMakeLists.txt

code/CMakeLists.txt
... ... @@ -12,11 +12,8 @@ ENDIF(OTB_FOUND)
12 12  
13 13 include(CheckCXXCompilerFlag)
14 14 CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
15   -CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
16 15 if(COMPILER_SUPPORTS_CXX11)
17 16 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fpermissive")
18   -elseif(COMPILER_SUPPORTS_CXX0X)
19   - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -fpermissive")
20 17 else()
21 18 message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
22 19 endif()
... ...
code/CMakeLists.txt~ 0 → 100644
... ... @@ -0,0 +1,102 @@
  1 +PROJECT(LSS)
  2 +
  3 +cmake_minimum_required(VERSION 2.8)
  4 +
  5 +FIND_PACKAGE(OTB)
  6 +IF(OTB_FOUND)
  7 + INCLUDE(${OTB_USE_FILE})
  8 +ELSE(OTB_FOUND)
  9 + MESSAGE(FATAL_ERROR
  10 + "Cannot build OTB project without OTB. Please set OTB_DIR.")
  11 +ENDIF(OTB_FOUND)
  12 +
  13 +include(CheckCXXCompilerFlag)
  14 +CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
  15 +if(COMPILER_SUPPORTS_CXX11)
  16 + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fpermissive")
  17 +else()
  18 + message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
  19 +endif()
  20 +
  21 +set(EXECUTABLE_OUTPUT_PATH bin)
  22 +
  23 +file(
  24 + GLOB_RECURSE
  25 + HEADERS
  26 + "src/*.h"
  27 +)
  28 +
  29 +file(
  30 + GLOB_RECURSE
  31 + TEMPLATES
  32 + "src/*.txx"
  33 +)
  34 +
  35 +file(
  36 + GLOB_RECURSE
  37 + SOURCES
  38 + "src/*.cxx"
  39 +)
  40 +
  41 +set(LSSS_INCLUDE_DIRS "")
  42 +foreach(_headerFile ${HEADERS})
  43 + get_filename_component(_dir ${_headerFile} PATH)
  44 + list(APPEND LSSS_INCLUDE_DIRS ${_dir})
  45 +endforeach()
  46 +
  47 +foreach(_templateFile ${TEMPLATES})
  48 + get_filename_component(_dir ${_templateFile} PATH)
  49 + list(APPEND LSSS_INCLUDE_DIRS ${_dir})
  50 +endforeach()
  51 +
  52 +list(REMOVE_DUPLICATES LSSS_INCLUDE_DIRS)
  53 +
  54 +include_directories(${LSSS_INCLUDE_DIRS})
  55 +
  56 +ADD_EXECUTABLE(
  57 + TiledBaatzSegmentation
  58 + apps/TiledBaatzSegmentation.cxx
  59 + ${SOURCES}
  60 +)
  61 +
  62 +TARGET_LINK_LIBRARIES(TiledBaatzSegmentation OTBCommon OTBIO)
  63 +
  64 +ADD_EXECUTABLE(
  65 + TiledSpringSegmentation
  66 + apps/TiledSpringSegmentation.cxx
  67 + ${SOURCES}
  68 +)
  69 +
  70 +TARGET_LINK_LIBRARIES(TiledSpringSegmentation OTBCommon OTBIO)
  71 +
  72 +ADD_EXECUTABLE(
  73 + SpringSegmentation
  74 + apps/SpringSegmentation.cxx
  75 + ${SOURCES}
  76 +)
  77 +
  78 +TARGET_LINK_LIBRARIES(SpringSegmentation OTBCommon OTBIO)
  79 +
  80 +ADD_EXECUTABLE(
  81 + TiledFLSASegmentation
  82 + apps/TiledFLSASegmentation.cxx
  83 + ${SOURCES}
  84 +)
  85 +
  86 +TARGET_LINK_LIBRARIES(TiledFLSASegmentation OTBCommon OTBIO)
  87 +
  88 +ADD_EXECUTABLE(
  89 + BaatzSegmentation
  90 + apps/BaatzSegmentation.cxx
  91 + ${SOURCES}
  92 +)
  93 +
  94 +TARGET_LINK_LIBRARIES(BaatzSegmentation OTBCommon OTBIO)
  95 +
  96 +ADD_EXECUTABLE(
  97 + FLSASegmentation
  98 + apps/FLSASegmentation.cxx
  99 + ${SOURCES}
  100 +)
  101 +
  102 +TARGET_LINK_LIBRARIES(FLSASegmentation OTBCommon OTBIO)
... ...
lss-copyright.txt
  1 +author: Pierre Lassalle
  2 +
1 3 Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
2   -Copyright (c) CS Systèmes d'Information (CS SI). All rights reserved.
  4 +
  5 +This work has been funded by CNES, CS Systèmes d'Information,
  6 +Université Paul Sabatier Toulouse III, and CNRS,
  7 +in the frame of the PHD thesis of Pierre Lassalle.
... ...
lss-copyright.txt~
  1 +author: Pierre Lassalle
  2 +
1 3 Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
2   -Copyright (c) CS Systèmes d'Information (CS SI). All rights reserved.
  4 +
  5 +This work has been funded by CNES, CS Systèmes d'Information,
  6 +Université Paul Sabatier Toulouse III, and CNRS,
  7 +in the frame of the PHD thesis of Pierre Lassalle.
... ...