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
David Youssefi
otb
Commits
0059df48
Commit
0059df48
authored
13 years ago
by
Julien Malik
Browse files
Options
Downloads
Patches
Plain Diff
ENH: clean up SWIG wrappers CMakeLists
parent
567eec59
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Wrappers/SWIG/CMakeLists.txt
+12
-43
12 additions, 43 deletions
Code/Wrappers/SWIG/CMakeLists.txt
with
12 additions
and
43 deletions
Code/Wrappers/SWIG/CMakeLists.txt
+
12
−
43
View file @
0059df48
...
@@ -11,47 +11,13 @@ endmacro()
...
@@ -11,47 +11,13 @@ endmacro()
#
#
# Setup the option for each laguage
# Setup the option for each laguage
#
#
option
(
WRAP_LUA
"Wrap Lua"
OFF
)
option
(
WRAP_PYTHON
"Wrap Python"
OFF
)
option
(
WRAP_JAVA
"Wrap Java"
OFF
)
option
(
WRAP_LUA
"Wrap Lua"
OFF
)
find_package
(
PythonLibs
)
option
(
WRAP_RUBY
"Wrap Ruby"
OFF
)
find_package
(
PythonInterp
)
option
(
WRAP_TCL
"Wrap Tcl"
OFF
)
if
(
PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND
)
option
(
WRAP_CSHARP
"Wrap CSharp"
OFF
)
set
(
WRAP_PYTHON_DEFAULT ON
)
option
(
WRAP_R
"Wrap R"
OFF
)
else
(
PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND
)
set
(
WRAP_PYTHON_DEFAULT OFF
)
endif
(
PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND
)
check_PIC_flag
(
Python
)
option
(
WRAP_PYTHON
"Wrap Python"
${
WRAP_PYTHON_DEFAULT
}
)
find_package
(
Java COMPONENTS Development Runtime
)
find_package
(
JNI
)
if
(
JAVA_FOUND AND JNI_FOUND
)
set
(
WRAP_JAVA_DEFAULT ON
)
else
(
${
JAVA_FOUND
}
AND JNI_FOUND
)
set
(
WRAP_JAVA_DEFAULT OFF
)
endif
(
JAVA_FOUND AND JNI_FOUND
)
check_PIC_flag
(
Java
)
option
(
WRAP_JAVA
"Wrap Java"
${
WRAP_JAVA_DEFAULT
}
)
find_package
(
TCL
)
if
(
TCL_FOUND
)
set
(
WRAP_TCL_DEFAULT ON
)
else
(
TCL_FOUND
)
set
(
WRAP_TCL_DEFAULT OFF
)
endif
(
TCL_FOUND
)
#option ( WRAP_TCL "Wrap Tcl" ${WRAP_TCL_DEFAULT} )
option
(
WRAP_TCL
"Wrap Tcl"
OFF
)
find_package
(
Ruby
)
if
(
RUBY_FOUND
)
set
(
WRAP_RUBY_DEFAULT ON
)
else
(
RUBY_FOUND
)
set
(
WRAP_RUBY_DEFAULT OFF
)
endif
(
RUBY_FOUND
)
check_PIC_flag
(
Ruby
)
#option ( WRAP_RUBY "Wrap Ruby" ${WRAP_RUBY_DEFAULT} )
option
(
WRAP_RUBY
"Wrap Ruby"
OFF
)
#
#
# General SWIG configuration
# General SWIG configuration
...
@@ -82,9 +48,10 @@ if ( WRAP_LUA OR WRAP_PYTHON OR WRAP_JAVA OR WRAP_CSHARP OR WRAP_TCL OR WRAP_R O
...
@@ -82,9 +48,10 @@ if ( WRAP_LUA OR WRAP_PYTHON OR WRAP_JAVA OR WRAP_CSHARP OR WRAP_TCL OR WRAP_R O
endif
()
endif
()
#
#
#
p
ython SWIG configuration
#
P
ython SWIG configuration
#
#
if
(
WRAP_PYTHON
)
if
(
WRAP_PYTHON
)
check_PIC_flag
(
Python
)
find_package
(
PythonLibs REQUIRED
)
find_package
(
PythonLibs REQUIRED
)
find_package
(
PythonInterp REQUIRED
)
find_package
(
PythonInterp REQUIRED
)
include_directories
(
${
PYTHON_INCLUDE_DIR
}
)
include_directories
(
${
PYTHON_INCLUDE_DIR
}
)
...
@@ -103,6 +70,7 @@ endif()
...
@@ -103,6 +70,7 @@ endif()
# JAVA SWIG configuration
# JAVA SWIG configuration
#
#
if
(
WRAP_JAVA
)
if
(
WRAP_JAVA
)
check_PIC_flag
(
Java
)
find_package
(
Java REQUIRED
)
find_package
(
Java REQUIRED
)
find_package
(
JNI REQUIRED
)
find_package
(
JNI REQUIRED
)
include_directories
(
${
JAVA_INCLUDE_PATH
}
${
JNI_INCLUDE_DIRS
}
)
include_directories
(
${
JAVA_INCLUDE_PATH
}
${
JNI_INCLUDE_DIRS
}
)
...
@@ -146,7 +114,7 @@ endif()
...
@@ -146,7 +114,7 @@ endif()
# lua SWIG configuration
# lua SWIG configuration
#
#
if
(
WRAP_LUA
)
if
(
WRAP_LUA
)
option
(
USE_SYSTEM_LUA
"Use a system provided lua"
OFF
)
#
option ( USE_SYSTEM_LUA "Use a system provided lua" OFF )
# if ( USE_SYSTEM_LUA )
# if ( USE_SYSTEM_LUA )
find_package
(
Lua51 REQUIRED
)
find_package
(
Lua51 REQUIRED
)
...
@@ -179,6 +147,7 @@ endif()
...
@@ -179,6 +147,7 @@ endif()
# ruby SWIG configuration
# ruby SWIG configuration
#
#
if
(
WRAP_RUBY
)
if
(
WRAP_RUBY
)
check_PIC_flag
(
Ruby
)
find_package
(
Ruby REQUIRED
)
find_package
(
Ruby REQUIRED
)
include_directories
(
${
RUBY_INCLUDE_DIRS
}
)
include_directories
(
${
RUBY_INCLUDE_DIRS
}
)
...
...
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