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
09f052b0
Commit
09f052b0
authored
5 years ago
by
Antoine Regimbeau
Browse files
Options
Downloads
Patches
Plain Diff
Clean Package CMakeLists.txt
parent
d2dd78e3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Packaging/CMakeLists.txt
+7
-19
7 additions, 19 deletions
Packaging/CMakeLists.txt
with
7 additions
and
19 deletions
Packaging/CMakeLists.txt
+
7
−
19
View file @
09f052b0
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
# limitations under the License.
# limitations under the License.
#
#
cmake_minimum_required
(
VERSION 3.
3.0
)
cmake_minimum_required
(
VERSION 3.
10.2
)
project
(
OTBPackaging
)
project
(
OTBPackaging
)
...
@@ -31,7 +31,7 @@ include(CTest)
...
@@ -31,7 +31,7 @@ include(CTest)
set
(
PKG_DEBUG OFF
)
set
(
PKG_DEBUG OFF
)
#set( PKG_DEBUG 1)
#set( PKG_DEBUG 1)
set
(
CMAKE_BUILD_TYPE
Release
)
set
(
CMAKE_BUILD_TYPE Release
)
#user-defined variables and option
#user-defined variables and option
option
(
OTB_WRAP_PYTHON
"include python bindings in package"
ON
)
option
(
OTB_WRAP_PYTHON
"include python bindings in package"
ON
)
...
@@ -40,13 +40,12 @@ set(SUPERBUILD_INSTALL_DIR "" CACHE PATH "path to superbuild install directory")
...
@@ -40,13 +40,12 @@ set(SUPERBUILD_INSTALL_DIR "" CACHE PATH "path to superbuild install directory")
set
(
DOWNLOAD_LOCATION
""
CACHE PATH
"path to superbuild download archives"
)
set
(
DOWNLOAD_LOCATION
""
CACHE PATH
"path to superbuild download archives"
)
#variables based on above user-defined variables
#variables based on above user-defined variables
message
(
"OTB_BINARY_DIR=
${
OTB_BINARY_DIR
}
"
)
if
(
NOT OTB_BINARY_DIR
)
if
(
NOT OTB_BINARY_DIR
)
set
(
OTB_BINARY_DIR
"
${
SUPERBUILD_BINARY_DIR
}
/OTB/build"
)
set
(
OTB_BINARY_DIR
"
${
SUPERBUILD_BINARY_DIR
}
/OTB/build"
)
endif
()
endif
()
set
(
QT_TRANSLATIONS_DIR
"
${
SUPERBUILD_INSTALL_DIR
}
/translations"
)
set
(
QT_TRANSLATIONS_DIR
"
${
SUPERBUILD_INSTALL_DIR
}
/translations"
)
get_filename_component
(
PACKAGE_OTB_SRC_DIR
${
OTBPackaging_SOURCE_DIR
}
PATH
)
get_filename_component
(
PACKAGE_OTB_SRC_DIR
${
OTBPackaging_SOURCE_DIR
}
PATH
)
set
(
SUPERBUILD_SOURCE_DIR
"
${
PACKAGE_OTB_SRC_DIR
}
/SuperBuild"
)
set
(
SUPERBUILD_SOURCE_DIR
"
${
PACKAGE_OTB_SRC_DIR
}
/SuperBuild"
)
set
(
LINUX FALSE
)
set
(
LINUX FALSE
)
...
@@ -70,6 +69,8 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
...
@@ -70,6 +69,8 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
include
(
${
SUPERBUILD_SOURCE_DIR
}
/CMake/SuperBuild_Macro.cmake
)
include
(
${
SUPERBUILD_SOURCE_DIR
}
/CMake/SuperBuild_Macro.cmake
)
#include superbuild_macro for OTB_TARGET_SYSTEM_ARCH_IS_X64 value
#include superbuild_macro for OTB_TARGET_SYSTEM_ARCH_IS_X64 value
# This maybe deleted as it might be done with cmake_host_system_information
# https://cmake.org/cmake/help/v3.10/command/cmake_host_system_information.html?highlight=sse
include
(
${
PACKAGE_OTB_SRC_DIR
}
/CMake/OTBCheckTargetSystemArch.cmake
)
include
(
${
PACKAGE_OTB_SRC_DIR
}
/CMake/OTBCheckTargetSystemArch.cmake
)
# get itk version from External_itk.cmake if not on mingw
# get itk version from External_itk.cmake if not on mingw
...
@@ -220,16 +221,3 @@ if(BUILD_TESTING)
...
@@ -220,16 +221,3 @@ if(BUILD_TESTING)
enable_testing
()
enable_testing
()
include
(
testing.cmake
)
include
(
testing.cmake
)
endif
()
endif
()
#TODO: dummy targets. to be removed after merge
add_custom_target
(
PACKAGE-OTB
COMMAND
"
${
CMAKE_COMMAND
}
"
--build . --target install
WORKING_DIRECTORY
"
${
CMAKE_BINARY_DIR
}
"
COMMENT
"dummy target PACKAGE-OTB"
)
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