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
Antoine Belvire
otb
Commits
096667c1
Commit
096667c1
authored
10 years ago
by
Guillaume Pasero
Browse files
Options
Downloads
Patches
Plain Diff
COMP: VC10: add static/shared define in header otb_openjpeg
parent
11f3db41
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
Modules/ThirdParty/OpenJPEG/src/CMakeLists.txt
+17
-3
17 additions, 3 deletions
Modules/ThirdParty/OpenJPEG/src/CMakeLists.txt
Modules/ThirdParty/OpenJPEG/src/otb_openjpeg.h.in
+8
-0
8 additions, 0 deletions
Modules/ThirdParty/OpenJPEG/src/otb_openjpeg.h.in
with
25 additions
and
3 deletions
Modules/ThirdParty/OpenJPEG/src/CMakeLists.txt
+
17
−
3
View file @
096667c1
...
...
@@ -5,8 +5,22 @@ configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/otbopenjpeg/libopenjpeg/openjpeg.h
${
CMAKE_CURRENT_BINARY_DIR
}
/otbopenjpeg
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/otb_openjpeg.h
${
CMAKE_CURRENT_BINARY_DIR
}
if
(
WIN32
)
# TODO : change the static/shared detection when using external openjpeg
if
(
BUILD_SHARED_LIBS
)
set
(
OPJ_EXPORTS 1
)
unset
(
OPJ_STATIC
)
else
()
unset
(
OPJ_EXPORTS
)
set
(
OPJ_STATIC 1
)
endif
()
else
()
unset
(
OPJ_STATIC
)
unset
(
OPJ_EXPORTS
)
endif
()
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/otb_openjpeg.h.in
${
CMAKE_CURRENT_BINARY_DIR
}
/otb_openjpeg.h
)
add_subdirectory
(
otbopenjpeg
)
\ No newline at end of file
add_subdirectory
(
otbopenjpeg
)
This diff is collapsed.
Click to expand it.
Modules/ThirdParty/OpenJPEG/src/otb_openjpeg.h
→
Modules/ThirdParty/OpenJPEG/src/otb_openjpeg.h
.in
+
8
−
0
View file @
096667c1
...
...
@@ -17,6 +17,14 @@
=========================================================================*/
#ifndef __otb_openjpeg_h
#ifndef OPJ_STATIC
#cmakedefine OPJ_STATIC
#endif
#ifndef OPJ_EXPORTS
#cmakedefine OPJ_EXPORTS
#endif
#include "otbopenjpeg/openjpeg.h"
#endif
...
...
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