Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_pdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_pdata
Commits
b2ec1617
Commit
b2ec1617
authored
3 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing OpenFPMConfig.cmake
parent
dc86532d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#2884
failed
3 years ago
Stage: build
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
openfpm_devices
+1
-1
1 addition, 1 deletion
openfpm_devices
openfpm_vcluster
+1
-1
1 addition, 1 deletion
openfpm_vcluster
src/CMakeLists.txt
+19
-21
19 additions, 21 deletions
src/CMakeLists.txt
with
21 additions
and
23 deletions
openfpm_devices
@
ff844fab
Subproject commit
9ea5dfcc2522b48aff0c6560c5803058f0a74d67
Subproject commit
ff844fabdec40f19b3649c0e346a22ebf5676cf6
This diff is collapsed.
Click to expand it.
openfpm_vcluster
@
a46c5b47
Subproject commit
35af0cc8d91e293a3136192cf0806ef9c03f6cac
Subproject commit
a46c5b472123b848df4ee1345b188092d8b06108
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
19
−
21
View file @
b2ec1617
...
@@ -93,9 +93,6 @@ if (CUDA_FOUND)
...
@@ -93,9 +93,6 @@ if (CUDA_FOUND)
if
(
TEST_COVERAGE
)
if
(
TEST_COVERAGE
)
target_compile_options
(
pdata PRIVATE $<$<COMPILE_LANGUAGE:CUDA>: -Xcompiler
"-fprofile-arcs -ftest-coverage"
>
)
target_compile_options
(
pdata PRIVATE $<$<COMPILE_LANGUAGE:CUDA>: -Xcompiler
"-fprofile-arcs -ftest-coverage"
>
)
endif
()
endif
()
if
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
# target_compile_options(pdata PRIVATE $<$<COMPILE_LANGUAGE:CUDA>: -G>)
endif
()
endif
()
endif
()
if
(
TEST_PERFORMANCE
)
if
(
TEST_PERFORMANCE
)
...
@@ -305,17 +302,18 @@ install(FILES Debug/debug.hpp
...
@@ -305,17 +302,18 @@ install(FILES Debug/debug.hpp
DESTINATION openfpm_pdata/include/Debug
DESTINATION openfpm_pdata/include/Debug
COMPONENT OpenFPM
)
COMPONENT OpenFPM
)
install
(
TARGETS ofpm_pdata DESTINATION openfpm_pdata/lib COMPONENT OpenFPM
)
install
(
TARGETS ofpm_pdata
EXPORT ofpm_pdata_config
DESTINATION openfpm_pdata/lib COMPONENT OpenFPM
)
########## Create openfpmConfig.cmake + openfpmConfigVersion.cmake
########## Create openfpmConfig.cmake + openfpmConfigVersion.cmake
add_library
(
openfpm
_config
_bin
INTERFACE
)
add_library
(
binary
_config INTERFACE
)
target_include_directories
(
target_include_directories
(
openfpm
_config
_bin
binary
_config
INTERFACE
INTERFACE
${
CMAKE_INSTALL_PREFIX
}
/openfpm_pdata/include
${
CMAKE_INSTALL_PREFIX
}
/openfpm_pdata/include
${
CMAKE_INSTALL_PREFIX
}
/openfpm_data/include
${
CMAKE_INSTALL_PREFIX
}
/openfpm_data/include
${
CMAKE_INSTALL_PREFIX
}
/openfpm_pdata/include/config
${
CMAKE_INSTALL_PREFIX
}
/openfpm_io/include
${
CMAKE_INSTALL_PREFIX
}
/openfpm_io/include
${
CMAKE_INSTALL_PREFIX
}
/openfpm_vcluster/include
${
CMAKE_INSTALL_PREFIX
}
/openfpm_vcluster/include
${
CMAKE_INSTALL_PREFIX
}
/openfpm_devices/include
${
CMAKE_INSTALL_PREFIX
}
/openfpm_devices/include
...
@@ -330,18 +328,22 @@ target_include_directories(
...
@@ -330,18 +328,22 @@ target_include_directories(
${
Boost_INCLUDE_DIRS
}
${
Boost_INCLUDE_DIRS
}
)
)
target_link_libraries
(
openfpm_config_bin INTERFACE
${
Boost_LIBRARIES
}
)
if
(
CUDA_ON_CPU
)
target_link_libraries
(
openfpm_config_bin INTERFACE
${
PARMETIS_LIBRARIES
}
)
target_compile_definitions
(
binary_config INTERFACE CUDA_ON_CPU
)
target_link_libraries
(
openfpm_config_bin INTERFACE -L
${
METIS_ROOT
}
/lib metis
)
endif
()
target_link_libraries
(
openfpm_config_bin INTERFACE
${
HDF5_LIBRARIES
}
)
target_link_libraries
(
openfpm_config_bin INTERFACE -L
${
LIBHILBERT_LIBRARY_DIRS
}
${
LIBHILBERT_LIBRARIES
}
)
target_link_libraries
(
binary_config INTERFACE
${
Boost_LIBRARIES
}
)
target_link_libraries
(
openfpm_config_bin INTERFACE
${
PETSC_LIBRARIES
}
)
target_link_libraries
(
binary_config INTERFACE
${
PARMETIS_LIBRARIES
}
)
target_link_libraries
(
openfpm_config_bin INTERFACE
${
Vc_LIBRARIES
}
)
target_link_libraries
(
binary_config INTERFACE -L
${
METIS_ROOT
}
/lib metis
)
target_link_libraries
(
openfpm_config_bin INTERFACE
${
alpaka_LIBRARIES
}
)
target_link_libraries
(
binary_config INTERFACE
${
HDF5_LIBRARIES
}
)
#target_link_libraries(openfpm_config_bin INTERFACE vcluster)
target_link_libraries
(
binary_config INTERFACE -L
${
LIBHILBERT_LIBRARY_DIRS
}
${
LIBHILBERT_LIBRARIES
}
)
#target_link_libraries(openfpm_config_bin INTERFACE ofpmmemory)
target_link_libraries
(
binary_config INTERFACE
${
PETSC_LIBRARIES
}
)
target_link_libraries
(
binary_config INTERFACE
${
Vc_LIBRARIES
}
)
target_link_libraries
(
binary_config INTERFACE
${
alpaka_LIBRARIES
}
)
target_link_libraries
(
binary_config INTERFACE $<INSTALL_PREFIX>/openfpm_vcluster/lib/$<TARGET_FILE_NAME:openfpm::vcluster>
)
target_link_libraries
(
binary_config INTERFACE $<INSTALL_PREFIX>/openfpm_devices/lib/$<TARGET_FILE_NAME:openfpm::ofpmmemory>
)
install
(
TARGETS
openfpm_config_bin
EXPORT openfpm_config CONFIGURATIONS
)
install
(
TARGETS
binary_config vcluster ofpmmemory
EXPORT openfpm_config
CONFIGURATIONS
)
include
(
CMakePackageConfigHelpers
)
include
(
CMakePackageConfigHelpers
)
write_basic_package_version_file
(
write_basic_package_version_file
(
...
@@ -350,10 +352,6 @@ write_basic_package_version_file(
...
@@ -350,10 +352,6 @@ write_basic_package_version_file(
COMPATIBILITY AnyNewerVersion
COMPATIBILITY AnyNewerVersion
)
)
#export(EXPORT openfpm_config
# FILE "${CMAKE_CURRENT_BINARY_DIR}/openfpm_cmake/openfpmConfig.cmake"
# NAMESPACE openfpm::
#)
install
(
EXPORT openfpm_config
install
(
EXPORT openfpm_config
DESTINATION cmake/
DESTINATION cmake/
...
...
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