diff --git a/Examples/Tutorials/CMakeLists.txt b/Examples/Tutorials/CMakeLists.txt index 2830d4092675283cf0beb0506b2d1f22f321ff61..c233c72aeaaaf383531e29f047d519f741d4874e 100644 --- a/Examples/Tutorials/CMakeLists.txt +++ b/Examples/Tutorials/CMakeLists.txt @@ -1,12 +1,5 @@ -PROJECT(HelloWorld) - -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) +PROJECT(TutorialsExamples) +INCLUDE_REGULAR_EXPRESSION("^.*$") ADD_EXECUTABLE(HelloWorldOTB HelloWorldOTB.cxx ) TARGET_LINK_LIBRARIES(HelloWorldOTB OTBCommon OTBIO) @@ -24,4 +17,4 @@ ADD_EXECUTABLE(SmarterFilteringPipeline SmarterFilteringPipeline.cxx ) TARGET_LINK_LIBRARIES(SmarterFilteringPipeline OTBCommon OTBIO) ADD_EXECUTABLE(SimpleViewer SimpleViewer.cxx ) -TARGET_LINK_LIBRARIES(SimpleViewer OTBCommon OTBIO OTBGui OTBVisu) \ No newline at end of file +TARGET_LINK_LIBRARIES(SimpleViewer OTBCommon OTBIO OTBGui OTBVisu)