Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openmesh-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
OpenMesh
openmesh-python
Commits
99588005
Commit
99588005
authored
7 years ago
by
Alexander Dielen
Browse files
Options
Downloads
Patches
Plain Diff
removed the old try_compile example project
parent
d209a926
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Example/CMakeLists.txt
+0
-30
0 additions, 30 deletions
Example/CMakeLists.txt
Example/Example.cc
+0
-22
0 additions, 22 deletions
Example/Example.cc
with
0 additions
and
52 deletions
Example/CMakeLists.txt
deleted
100644 → 0
+
0
−
30
View file @
d209a926
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8.9
)
PROJECT
(
Example
)
FILE
(
GLOB SOURCES *.cc *hh
)
INCLUDE_DIRECTORIES
(
${
INCLUDE_DIRECTORIES
}
)
LINK_DIRECTORIES
(
${
LINK_DIRECTORIES
}
)
ADD_LIBRARY
(
example SHARED
${
SOURCES
}
)
TARGET_LINK_LIBRARIES
(
example
${
LINK_LIBRARIES
}
)
SET_TARGET_PROPERTIES
(
example
PROPERTIES
PREFIX
""
DEBUG_POSTFIX
""
RELEASE_POSTFIX
""
)
IF
(
APPLE
)
SET_TARGET_PROPERTIES
(
example PROPERTIES SUFFIX
".so"
)
IF
(
NOT
(
CMAKE_MAJOR_VERSION LESS 3
))
SET_TARGET_PROPERTIES
(
example PROPERTIES MACOSX_RPATH TRUE
)
ENDIF
()
ENDIF
()
IF
(
WIN32
)
SET_TARGET_PROPERTIES
(
example PROPERTIES SUFFIX
".pyd"
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/bigobj"
)
ENDIF
()
This diff is collapsed.
Click to expand it.
Example/Example.cc
deleted
100644 → 0
+
0
−
22
View file @
d209a926
#include
<boost/python.hpp>
char
const
*
greet
()
{
return
"hello, world"
;
}
struct
World
{
void
set
(
std
::
string
msg
)
{
this
->
msg
=
msg
;
}
std
::
string
greet
()
{
return
msg
;
}
std
::
string
msg
;
};
BOOST_PYTHON_MODULE
(
example
)
{
using
namespace
boost
::
python
;
def
(
"greet"
,
greet
);
class_
<
World
>
(
"World"
)
.
def
(
"greet"
,
&
World
::
greet
)
.
def
(
"set"
,
&
World
::
set
)
;
}
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