Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CMake
CMake
Commits
a3b1be5e
Commit
a3b1be5e
authored
Apr 22, 2014
by
Julien Schueller
Committed by
Brad King
Apr 29, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UseSWIG: Add support for Go and Lua
parent
2475acc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Modules/UseSWIG.cmake
Modules/UseSWIG.cmake
+4
-0
No files found.
Modules/UseSWIG.cmake
View file @
a3b1be5e
...
...
@@ -244,6 +244,8 @@ macro(SWIG_ADD_MODULE name language)
if
(
"
${
swig_lowercase_language
}
"
STREQUAL
"octave"
)
set_target_properties
(
${
SWIG_MODULE_
${
name
}
_REAL_NAME
}
PROPERTIES PREFIX
""
)
set_target_properties
(
${
SWIG_MODULE_
${
name
}
_REAL_NAME
}
PROPERTIES SUFFIX
".oct"
)
elseif
(
"
${
swig_lowercase_language
}
"
STREQUAL
"go"
)
set_target_properties
(
${
SWIG_MODULE_
${
name
}
_REAL_NAME
}
PROPERTIES PREFIX
""
)
elseif
(
"
${
swig_lowercase_language
}
"
STREQUAL
"java"
)
if
(
APPLE
)
# In java you want:
...
...
@@ -254,6 +256,8 @@ macro(SWIG_ADD_MODULE name language)
# Linux : libLIBRARY.so
set_target_properties
(
${
SWIG_MODULE_
${
name
}
_REAL_NAME
}
PROPERTIES SUFFIX
".jnilib"
)
endif
()
elseif
(
"
${
swig_lowercase_language
}
"
STREQUAL
"lua"
)
set_target_properties
(
${
SWIG_MODULE_
${
name
}
_REAL_NAME
}
PROPERTIES PREFIX
""
)
elseif
(
"
${
swig_lowercase_language
}
"
STREQUAL
"python"
)
# this is only needed for the python case where a _modulename.so is generated
set_target_properties
(
${
SWIG_MODULE_
${
name
}
_REAL_NAME
}
PROPERTIES PREFIX
""
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment