Skip to content

Commit

Permalink
BUG: allow standalone compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
gpo-geo committed Oct 25, 2018
1 parent d3bd30e commit ce0cf7a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions CMakeLists.txt
@@ -1,5 +1,12 @@
project(OTBGRM)
cmake_minimum_required (VERSION 2.8)
project(otbGRM)

set(OTBGRM_LIBRARIES OTBGRM)

otb_module_impl()
if(NOT OTB_SOURCE_DIR)
find_package(OTB REQUIRED)
list(APPEND CMAKE_MODULE_PATH ${OTB_CMAKE_DIR})
include(OTBModuleExternal)
else()
otb_module_impl()
endif()

0 comments on commit ce0cf7a

Please sign in to comment.