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
Container Registry
Model registry
Operate
Environments
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
Sébastien Peillet
otb
Commits
04c6e613
Commit
04c6e613
authored
15 years ago
by
Manuel Grizonnet
Browse files
Options
Downloads
Patches
Plain Diff
ENH:add_custom_command to configfile work in progress
parent
c7df41bd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Utilities/otbconfigfile/CMakeLists.txt
+10
-3
10 additions, 3 deletions
Utilities/otbconfigfile/CMakeLists.txt
Utilities/otbconfigfile/otb_config.inp
+5
-0
5 additions, 0 deletions
Utilities/otbconfigfile/otb_config.inp
with
15 additions
and
3 deletions
Utilities/otbconfigfile/CMakeLists.txt
+
10
−
3
View file @
04c6e613
...
...
@@ -3,8 +3,8 @@ PROJECT(otbConfigFilelib)
FILE
(
GLOB otbConfigFilelib_SRCS
"*.cpp"
)
FILE
(
GLOB otbConfigFilelib_HDRS
"*.h"
)
SET
(
otbConfigFile_DEFAULT otb_config.inp
)
ADD_LIBRARY
(
otbConfigFile
${
otbConfigFilelib_SRCS
}
${
otbConfigFile_DEFAULT
}
)
TARGET_LINK_LIBRARIES
(
otbConfigFile
)
ADD_LIBRARY
(
otbConfigFile
${
otbConfigFilelib_SRCS
}
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
otbConfigFile_DEFAULT
}
)
TARGET_LINK_LIBRARIES
(
otbConfigFile
)
IF
(
OTB_LIBRARY_PROPERTIES
)
SET_TARGET_PROPERTIES
(
otbConfigFile PROPERTIES
${
OTB_LIBRARY_PROPERTIES
}
)
ENDIF
(
OTB_LIBRARY_PROPERTIES
)
...
...
@@ -25,4 +25,11 @@ IF(NOT OTB_INSTALL_NO_DEVELOPMENT)
ENDIF
(
NOT OTB_INSTALL_NO_DEVELOPMENT
)
#copy the configuration file in the binary directory
INSTALL
(
FILES
${
otbConfigFile_DEFAULT
}
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
)
ADD_CUSTOM_COMMAND
(
OUTPUT
${
OTB_BINARY_DIR
}
/
${
otbConfigFile_DEFAULT
}
COMMAND
${
CMAKE_COMMAND
}
-E copy
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
otbConfigFile_DEFAULT
}
${
OTB_BINARY_DIR
}
/
${
otbConfigFile_DEFAULT
}
DEPENDS
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
otbConfigFile_DEFAULT
}
COMMENT
"Copy configuration file to OTB_BINARY_DIR"
)
INSTALL
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
otbConfigFile_DEFAULT
}
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
)
This diff is collapsed.
Click to expand it.
Utilities/otbconfigfile/otb_config.inp
0 → 100644
+
5
−
0
View file @
04c6e613
#example properties for OTB and ...
LANG=fr
GEOIDE=/home/manuel/toto
WORLD=/home/manuel/tata
SRTM=/home/manuel/titi
\ No newline at end of file
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