Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libiconmath
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
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
icon-libraries
libiconmath
Commits
be8fea69
Commit
be8fea69
authored
2 months ago
by
Pradipta Samanta
Browse files
Options
Downloads
Patches
Plain Diff
modified CMakeLists.txt of horizontal to enable compilation of C++ code that uses Kokkos
parent
089863da
No related branches found
Branches containing commit
No related tags found
1 merge request
!37
Draft: C++ port of horizontal/mo_lib_gradients.F90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/horizontal/CMakeLists.txt
+10
-0
10 additions, 0 deletions
src/horizontal/CMakeLists.txt
with
10 additions
and
0 deletions
src/horizontal/CMakeLists.txt
+
10
−
0
View file @
be8fea69
...
@@ -52,11 +52,21 @@ target_include_directories(
...
@@ -52,11 +52,21 @@ target_include_directories(
# Path to the Fortran modules:
# Path to the Fortran modules:
$<BUILD_INTERFACE:$<$<COMPILE_LANGUAGE:Fortran>:
${
Fortran_MODULE_DIRECTORY
}
>>
$<BUILD_INTERFACE:$<$<COMPILE_LANGUAGE:Fortran>:
${
Fortran_MODULE_DIRECTORY
}
>>
$<INSTALL_INTERFACE:$<$<COMPILE_LANGUAGE:Fortran>:$<INSTALL_PREFIX>/
${
CMAKE_INSTALL_INCLUDEDIR
}
>>
$<INSTALL_INTERFACE:$<$<COMPILE_LANGUAGE:Fortran>:$<INSTALL_PREFIX>/
${
CMAKE_INSTALL_INCLUDEDIR
}
>>
# Path to the internal C/C++ headers (for testing): Requires CMake 3.15+ for
# multiple compile languages
# https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html
$<BUILD_INTERFACE:$<$<COMPILE_LANGUAGE:C,CXX>:
${
CMAKE_CURRENT_SOURCE_DIR
}
>>
PRIVATE
# Path to config.h (for C and C++ only): Requires CMake 3.15+ for multiple
# compile languages
# https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html
$<BUILD_INTERFACE:$<$<COMPILE_LANGUAGE:C,CXX>:
${
CMAKE_CURRENT_BINARY_DIR
}
>>
)
)
target_link_libraries
(
iconmath-horizontal PUBLIC fortran-support::fortran-support
)
target_link_libraries
(
iconmath-horizontal PUBLIC fortran-support::fortran-support
)
target_link_libraries
(
iconmath-horizontal PUBLIC iconmath-support
)
target_link_libraries
(
iconmath-horizontal PUBLIC iconmath-support
)
target_link_libraries
(
iconmath-horizontal PUBLIC iconmath-interpolation
)
target_link_libraries
(
iconmath-horizontal PUBLIC iconmath-interpolation
)
target_link_libraries
(
iconmath-interpolation PRIVATE Kokkos::kokkos
)
install
(
TARGETS iconmath-horizontal EXPORT
"
${
PROJECT_NAME
}
-targets"
)
install
(
TARGETS iconmath-horizontal EXPORT
"
${
PROJECT_NAME
}
-targets"
)
...
...
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