Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coyote
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nils
coyote
Commits
92ee69e7
Commit
92ee69e7
authored
4 months ago
by
Nils-Arne Dreier
Browse files
Options
Downloads
Patches
Plain Diff
fix: install python stuff only if installed with scikit build
parent
7465905c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!22
fix: install python stuff only if installed with scikit build
Pipeline
#91672
passed
4 months ago
Stage: lint
Stage: build
Stage: test
Stage: verify
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
apps/hiopy/CMakeLists.txt
+10
-5
10 additions, 5 deletions
apps/hiopy/CMakeLists.txt
python/CMakeLists.txt
+4
-2
4 additions, 2 deletions
python/CMakeLists.txt
src/CMakeLists.txt
+13
-2
13 additions, 2 deletions
src/CMakeLists.txt
with
27 additions
and
9 deletions
apps/hiopy/CMakeLists.txt
+
10
−
5
View file @
92ee69e7
install
(
DIRECTORY
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
COMPONENT python
EXCLUDE_FROM_ALL
DESTINATION
"."
)
if
(
SKBUILD EQUAL 2
)
install
(
DIRECTORY
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
COMPONENT python
EXCLUDE_FROM_ALL
DESTINATION
${
SKBUILD_PLATLIB_DIR
}
FILES_MATCHING PATTERN
"*.py"
PATTERN
"tests/*"
EXCLUDE
PATTERN
"__pycache__"
EXCLUDE
)
endif
()
add_subdirectory
(
tests
)
This diff is collapsed.
Click to expand it.
python/CMakeLists.txt
+
4
−
2
View file @
92ee69e7
...
...
@@ -7,5 +7,7 @@ target_link_libraries(coyote_py PRIVATE coyote)
target_compile_definitions
(
coyote_py
PRIVATE VERSION_INFO=
${
PROJECT_VERSION
}
)
install
(
TARGETS coyote LIBRARY COMPONENT python EXCLUDE_FROM_ALL DESTINATION .
)
install
(
TARGETS coyote_py LIBRARY COMPONENT python EXCLUDE_FROM_ALL DESTINATION .
)
if
(
SKBUILD EQUAL 2
)
install
(
TARGETS coyote LIBRARY COMPONENT python EXCLUDE_FROM_ALL DESTINATION
${
SKBUILD_PLATLIB_DIR
}
)
install
(
TARGETS coyote_py LIBRARY COMPONENT python EXCLUDE_FROM_ALL DESTINATION
${
SKBUILD_PLATLIB_DIR
}
)
endif
()
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
13
−
2
View file @
92ee69e7
add_library
(
coyote coyote.cpp coyoteenv.cpp healpixgrid.cpp
)
target_link_libraries
(
coyote PUBLIC YAC::YAC Threads::Threads
)
add_library
(
coyote
coyote.cpp coyoteenv.cpp healpixgrid.cpp
)
set_target_properties
(
coyote
PROPERTIES
PUBLIC_HEADER
"coyote.hpp"
PRIVATE_HEADER
"coyoteenv.hpp;field.hpp;healpixgrid.hpp;tsqueue.hpp"
)
target_link_libraries
(
coyote PUBLIC MPI::MPI_CXX YAC::YAC Threads::Threads
)
target_include_directories
(
coyote PUBLIC
"$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
>"
"$<INSTALL_INTERFACE:
${
CMAKE_INSTALL_INCLUDEDIR
}
>"
)
if
(
healpix_FOUND
)
target_link_libraries
(
coyote PRIVATE healpix::healpix_cxx
)
endif
()
install
(
TARGETS coyote
)
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