Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien Cabieces
otb
Commits
8de79b1c
Commit
8de79b1c
authored
6 years ago
by
Antoine Regimbeau
Browse files
Options
Downloads
Patches
Plain Diff
Switch test to ON and add c and cxx flags
parent
9b784285
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CI/configure_option.cmake
+8
-3
8 additions, 3 deletions
CI/configure_option.cmake
CI/main_ci.cmake
+15
-9
15 additions, 9 deletions
CI/main_ci.cmake
with
23 additions
and
12 deletions
CI/configure_option.cmake
+
8
−
3
View file @
8de79b1c
...
...
@@ -7,9 +7,8 @@
set
(
otb_build_project_option
"BUILD_COOKBOOK:BOOL=OFF
BUILD_EXAMPLES:BOOL=OFF
BUILD_SHARED_LIBS:BOOL=OFF
BUILD_TESTING:BOOL=OFF"
)
BUILD_SHARED_LIBS:BOOL=ON
BUILD_TESTING:BOOL=ON"
)
set
(
otb_use_option
"OTB_USE_6S:BOOL=OFF
...
...
@@ -43,6 +42,12 @@ set (otb_data_option
OTB_DATA_USE_LARGEINPUT:BOOL=OFF
OTB_DATA_LARGEINPUT_ROOT:PATH=
${
OTB_LARGEINPUT_ROOT
}
"
)
set
(
cmake_configure_option
"CMAKE_BUILD_TYPE=
${
CTEST_BUILD_CONFIGURATION
}
CMAKE_INSTALL_PREFIX:PATH=
${
CTEST_INSTALL_DIRECTORY
}
CMAKE_C_FLAGS:STRING=-fPIC -Wall -Wextra
CMAKE_CXX_FLAGS:STRING=-fPIC -Wall -Wextra -Wno-cpp"
)
#Transform the previous string in list
string
(
REPLACE
"
\n
"
";"
otb_build_project_option
${
otb_build_project_option
}
)
string
(
REPLACE
"
\n
"
";"
otb_use_option
${
otb_use_option
}
)
...
...
This diff is collapsed.
Click to expand it.
CI/main_ci.cmake
+
15
−
9
View file @
8de79b1c
...
...
@@ -3,31 +3,37 @@ set (ENV{LANG} "C") # Only ascii output
# Create build directory
get_filename_component
(
OTB_SOURCE_DIR
${
CMAKE_CURRENT_LIST_DIR
}
DIRECTORY
)
#
Ctest setting
#
Build Configuration : Release, Debug..
set
(
CTEST_BUILD_CONFIGURATION
"Release"
)
# Directory variable
set
(
CTEST_SOURCE_DIRECTORY
"
${
OTB_SOURCE_DIR
}
"
)
set
(
CTEST_BINARY_DIRECTORY
"
${
OTB_SOURCE_DIR
}
/build/"
)
set
(
C
MAKE_COMMAND
"cmake
"
)
set
(
C
TEST_INSTALL_DIRECTORY
"
${
OTB_SOURCE_DIR
}
/install/
"
)
set
(
PROJECT_SOURCE_DIR
"
${
OTB_SOURCE_DIR
}
"
)
# number of thread used for compilation
set
(
CTEST_BUILD_FLAGS
"-j8"
)
# Ctest command value
set
(
CMAKE_COMMAND
"cmake"
)
set
(
CTEST_BUILD_FLAGS
"-j8"
)
# number of thread used for compilation
set
(
CTEST_BUILD_COMMAND
"make
${
CTEST_BUILD_FLAGS
}
"
)
set
(
CTEST_CMAKE_GENERATOR
"Unix Makefiles"
)
set
(
CTEST_BUILD_NAME
"CI_TEST"
)
ctest_start
(
"Nightly"
)
# ctest_update() no need to update it is done by Gitlab-CI
# Data directory setting
set
(
OTB_DATA_ROOT
"
${
OTB_SOURCE_DIR
}
/otb-data/"
)
# todo
set
(
OTB_LARGEINPUT_ROOT
""
)
# todo
set
(
CONFIGURE_OPTIONS
""
)
#The following file set the CONFIGURE_OPTIONS variable
set
(
CONFIGURE_OPTIONS
""
)
include
(
"
${
CMAKE_CURRENT_LIST_DIR
}
/configure_option.cmake"
)
# End of configuration
ctest_start
(
"Nightly"
)
ctest_configure
(
BUILD
"
${
CTEST_BINARY_DIRECTORY
}
"
SOURCE
"
${
OTB_SOURCE_DIR
}
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment