-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated CMake package with namespace and config file and only export …
…public symbols (#9) * reduced number of interface libraries to smallest subset * added separate CMake config files for shared and static library * only public symbols are now exported * added SpFFTConfigVersion file * fortran functions are now exported
- Loading branch information
Showing
25 changed files
with
323 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,4 @@ | ||
# options used for building library | ||
set(SPFFT_OMP @SPFFT_OMP@) | ||
set(SPFFT_MPI @SPFFT_MPI@) | ||
set(SPFFT_STATIC @SPFFT_STATIC@) | ||
set(SPFFT_GPU_DIRECT @SPFFT_GPU_DIRECT@) | ||
set(SPFFT_SINGLE_PRECISION @SPFFT_SINGLE_PRECISION@) | ||
set(SPFFT_GPU_BACKEND @SPFFT_GPU_BACKEND@) | ||
|
||
# add version of package | ||
include("${CMAKE_CURRENT_LIST_DIR}/SpFFTConfigVersion.cmake") | ||
|
||
# add library target | ||
include("${CMAKE_CURRENT_LIST_DIR}/SpFFTTargets.cmake") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
# Prefer shared library | ||
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/SpFFTSharedConfigVersion.cmake") | ||
include("${CMAKE_CURRENT_LIST_DIR}/SpFFTSharedConfigVersion.cmake") | ||
else() | ||
include("${CMAKE_CURRENT_LIST_DIR}/SpFFTStaticConfigVersion.cmake") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# options used for building library | ||
set(SPFFT_OMP @SPFFT_OMP@) | ||
set(SPFFT_MPI @SPFFT_MPI@) | ||
set(SPFFT_STATIC @SPFFT_STATIC@) | ||
set(SPFFT_GPU_DIRECT @SPFFT_GPU_DIRECT@) | ||
set(SPFFT_SINGLE_PRECISION @SPFFT_SINGLE_PRECISION@) | ||
set(SPFFT_GPU_BACKEND @SPFFT_GPU_BACKEND@) | ||
|
||
# add version of package | ||
include("${CMAKE_CURRENT_LIST_DIR}/SpFFTSharedConfigVersion.cmake") | ||
|
||
# add library target | ||
include("${CMAKE_CURRENT_LIST_DIR}/SpFFTSharedTargets.cmake") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# options used for building library | ||
set(SPFFT_OMP @SPFFT_OMP@) | ||
set(SPFFT_MPI @SPFFT_MPI@) | ||
set(SPFFT_STATIC @SPFFT_STATIC@) | ||
set(SPFFT_GPU_DIRECT @SPFFT_GPU_DIRECT@) | ||
set(SPFFT_SINGLE_PRECISION @SPFFT_SINGLE_PRECISION@) | ||
set(SPFFT_GPU_BACKEND @SPFFT_GPU_BACKEND@) | ||
|
||
# add version of package | ||
include("${CMAKE_CURRENT_LIST_DIR}/SpFFTStaticConfigVersion.cmake") | ||
|
||
# add library target | ||
include("${CMAKE_CURRENT_LIST_DIR}/SpFFTStaticTargets.cmake") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
# Prefer shared library | ||
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/SpFFTSharedTargets.cmake") | ||
include("${CMAKE_CURRENT_LIST_DIR}/SpFFTSharedTargets.cmake") | ||
else() | ||
include("${CMAKE_CURRENT_LIST_DIR}/SpFFTStaticTargets.cmake") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,4 +41,6 @@ | |
#cmakedefine SPFFT_SINGLE_PRECISION | ||
#cmakedefine SPFFT_GPU_DIRECT | ||
|
||
#include "spfft/spfft_export.h" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.