Commit b0546625 authored by Antoine Regimbeau's avatar Antoine Regimbeau
Browse files

Working ctest configure: no option

parent f25df1ee
# This script is a prototype for the futur CI
SET( ENV{LANG} "C" ) # Only ascii output
set (ENV{LANG} "C") # Only ascii output
# Create build directory
file (MAKE_DIRECTORY /opt/otb/build/)
SET (CTEST_SOURCE_DIRECTORY "/opt/otb/")
SET (CTEST_BINARY_DIRECTORY "/opt/otb/build/")
#Ctest setting
set (CTEST_BUILD_CONFIGURATION "Release")
set (CTEST_SOURCE_DIRECTORY "/opt/otb/")
set (CTEST_BINARY_DIRECTORY "/opt/otb/build/")
set (CTEST_CONFIGURE_COMMAND "cmake" )
set (CTEST_BUILD_COMMAND "make")
set (CTEST_CMAKE_GENERATOR "Unix Makefiles")
set (CTEST_BUILD_NAME "CI_TEST")
SET (DATA_ROOT_DIR "/opt/otb/otb-data/") # todo
ctest_start("Nightly")
# ctest_update() no need to update it is done by Gitlab-CI
ctest_configure()
ctest_build()
ctest_test()
\ No newline at end of file
set (DATA_ROOT_DIR "/opt/otb/otb-data/") # todo
set(otb_configure_option
"
OTB_USE_OPENGL:BOOL=OFF
OTB_USE_GLEW:BOOL=OFF
OTB_USE_GLFW:BOOL=OFF
OTB_USE_GLUT:BOOL=OFF
OTB_USE_QT:BOOL=OFF
OTB_USE_QWT:BOOL=OFF
OTB_USE_6S:BOOL=OFF
OTB_USE_CURL:BOOL=OFF
OTB_USE_OPENCV:BOOL=OFF
OTB_USE_LIBSVM:BOOL=OFF
OTB_USE_MUPARSER:BOOL=OFF
OTB_USE_MUPARSERX:BOOL=OFF
OTB_WRAP_PYTHON:BOOL=OFF
OTB_WRAP_PYTHON3:BOOL=OFF
OTB_WRAP_JAVA:BOOL=OFF
OTB_USE_SHARK:BOOL=OFF
OTB_USE_OPENMP:BOOL=OFF
BUILD_TESTING:BOOL=OFF
")
ctest_configure(OPTIONS "${CONFIGURE_OPTIONS}"
RETURN_VALUE _configure_rv)
if ( _configure_rv EQUAL -1 )
message("An error occurs during ctest_configure ${_configure_rv}")
endif()
message("${_configure_rv}")
# ctest_build()
# ctest_test()
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment