Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Cresson Remi
LSGRM
Commits
9babb7a3
Commit
9babb7a3
authored
Aug 03, 2016
by
remicres
Browse files
REFAC: Modularization
parent
a11c26e5
Changes
5
Hide whitespace changes
Inline
Side-by-side
App/CMakeLists.txt
0 → 100644
View file @
9babb7a3
cmake_minimum_required
(
VERSION 2.8
)
OTB_CREATE_APPLICATION
(
NAME LSGRM
SOURCES otbLSGRM.cxx
LINK_LIBRARIES OTBCommon
)
App
lications/lsgrmProto
.cxx
→
App
/otbLSGRM
.cxx
View file @
9babb7a3
File moved
Applications/CMakeLists.txt
deleted
100644 → 0
View file @
a11c26e5
#=========================================================================
# Program: Large Scale Generic Region Merging Library (LSGRM)
# Language: C++
# author: Lassalle Pierre
# Copyright (c) Centre National d'Etudes Spatiales. All rights reserved
# See grmlib-copyright.txt for details.
# This software is distributed WITHOUT ANY WARRANTY; without even
# the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the above copyright notices for more information.
#=========================================================================
add_executable
(
Test lsgrmProto.cxx
)
target_link_libraries
(
Test OTBLSGRM
${
MPI_CXX_LIBRARIES
}
)
CMakeLists.txt
View file @
9babb7a3
#=========================================================================
# Program: Large Scale Generic Region Merging Library (GRM)
# Language: C++
# author: Lassalle Pierre
# Copyright (c) Centre National d'Etudes Spatiales. All rights reserved
# See grmlib-copyright.txt for details.
# This software is distributed WITHOUT ANY WARRANTY; without even
# the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the above copyright notices for more information.
#=========================================================================
project
(
LSGRM
)
cmake_minimum_required
(
VERSION 2.8
)
find_package
(
OTB
)
IF
(
OTB_FOUND
)
include
(
${
OTB_USE_FILE
}
)
ELSE
(
OTB_FOUND
)
message
(
FATAL_ERROR
"Cannot build OTB project without OTB. Please set OTB_DIR."
)
ENDIF
(
OTB_FOUND
)
#Activate c++11
include
(
CheckCXXCompilerFlag
)
CHECK_CXX_COMPILER_FLAG
(
"-std=c++11"
COMPILER_SUPPORTS_CXX11
)
if
(
COMPILER_SUPPORTS_CXX11
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++11 -fpermissive -Wall -Wmaybe-uninitialized"
)
else
()
message
(
STATUS
"The compiler
${
CMAKE_CXX_COMPILER
}
has no C++11 support. Please use a different C++ compiler."
)
endif
()
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/Code
)
add_subdirectory
(
Code
)
add_subdirectory
(
Applications
)
otb_module_impl
()
otb-module.cmake
0 → 100644
View file @
9babb7a3
set
(
DOCUMENTATION
"Large Scale Generic Region Merging"
)
otb_module
(
LSGRM
DEPENDS
OTBCommon
OTBApplicationEngine
OTBConversion
TEST_DEPENDS
OTBTestKernel
OTBCommandLine
DESCRIPTION
"Image segmentation"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment