Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
Nektar-Python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Nektar
Nektar-Python
Commits
24228256
Commit
24228256
authored
10 years ago
by
Dave Moxey
Browse files
Options
Downloads
Patches
Plain Diff
Add macro to create NekPy libraries
parent
8e91d538
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+22
-1
22 additions, 1 deletion
CMakeLists.txt
LibUtilities/CMakeLists.txt
+1
-10
1 addition, 10 deletions
LibUtilities/CMakeLists.txt
with
23 additions
and
11 deletions
CMakeLists.txt
+
22
−
1
View file @
24228256
...
...
@@ -22,8 +22,29 @@ FIND_PACKAGE(PythonInterp REQUIRED)
FIND_PACKAGE
(
PythonLibs REQUIRED
)
INCLUDE_DIRECTORIES
(
SYSTEM
${
PYTHON_INCLUDE_DIRS
}
)
# Define a macro which will create our libraries.
MACRO
(
ADD_NEKPY_LIBRARY name sources
)
ADD_LIBRARY
(
_
${
name
}
SHARED
${${
sources
}}
)
# Python requires a .so extension, even on OS X.
SET_TARGET_PROPERTIES
(
_
${
name
}
PROPERTIES PREFIX
""
)
SET_TARGET_PROPERTIES
(
_
${
name
}
PROPERTIES SUFFIX
".so"
)
TARGET_LINK_LIBRARIES
(
_
${
name
}
${
BOOST_TMP_LIBS
}
${
PYTHON_LIBRARIES
}
${
NEKTAR++_LIBRARIES
}
${
NEKTAR++_TP_LIBRARIES
}
)
INSTALL
(
TARGETS _
${
name
}
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/NekPy/
${
name
}
)
ENDMACRO
()
# Add libraries.
ADD_SUBDIRECTORY
(
LibUtilities
)
# Copy to lib structure.
INSTALL
(
DIRECTORY
${
CMAKE_SOURCE_DIR
}
/lib/ DESTINATION
${
CMAKE_BINARY_DIR
}
/NekPy
)
INSTALL
(
DIRECTORY
${
CMAKE_SOURCE_DIR
}
/lib/
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/NekPy
)
This diff is collapsed.
Click to expand it.
LibUtilities/CMakeLists.txt
+
1
−
10
View file @
24228256
...
...
@@ -3,13 +3,4 @@ SET(LIBUTILITIES_SOURCES
BasicUtils/SessionReader.cpp
)
ADD_LIBRARY
(
_LibUtilities SHARED
${
LIBUTILITIES_SOURCES
}
)
SET_TARGET_PROPERTIES
(
_LibUtilities PROPERTIES PREFIX
""
)
SET_TARGET_PROPERTIES
(
_LibUtilities PROPERTIES SUFFIX
".so"
)
TARGET_LINK_LIBRARIES
(
_LibUtilities
${
BOOST_TMP_LIBS
}
${
PYTHON_LIBRARIES
}
${
NEKTAR++_LIBRARIES
}
${
NEKTAR++_TP_LIBRARIES
}
)
INSTALL
(
TARGETS _LibUtilities DESTINATION
${
CMAKE_BINARY_DIR
}
/NekPy/LibUtilities
)
\ No newline at end of file
ADD_NEKPY_LIBRARY
(
LibUtilities LIBUTILITIES_SOURCES
)
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