Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
iwr
amdis
Commits
7cde5539
Commit
7cde5539
authored
14 years ago
by
Naumann, Andreas
Browse files
Options
Downloads
Patches
Plain Diff
capital i...
parent
51280698
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
AMDiS/AMDiSConfig.cmake.in
+16
-16
16 additions, 16 deletions
AMDiS/AMDiSConfig.cmake.in
with
16 additions
and
16 deletions
AMDiS/AMDiSConfig.cmake.in
+
16
−
16
View file @
7cde5539
...
...
@@ -4,24 +4,24 @@
# AMDiS_INCLUDE_DIR the amdis-directory only
# AMDiS_INCLUDE_DIRS all include directories (mtl, umfpack, parmetis, metis, ...)
# AMDiS_LIBRARIES the needed libraries
# AMD
i
S_LIBRARY_DIRS the link directories
# AMD
I
S_LIBRARY_DIRS the link directories
# AMDiS_COMPILEFLAGS some compile flags for amdis
#
#
# For a fast start, you use this package in the following way
# simply look for it, possibly set the AMDiS directory
# find_package(AMDiS )
# include(${AMD
i
S_USE_FILE})
# include(${AMD
I
S_USE_FILE})
# add_executable(yourTarget <yourSources>)
# target_link_libraries(yourTarget ${AMDiS_LIBRARIES})
#
#
#The AMD
i
S_USE_FILE adds the include and link-directories for amdis to cmake.
#The AMD
I
S_USE_FILE adds the include and link-directories for amdis to cmake.
#
#If you use the parallel amdis-version, the AMD
i
S_USE_FILE also trys to detect
#If you use the parallel amdis-version, the AMD
I
S_USE_FILE also trys to detect
#the mpi and petsc configuration. If those versions don't fit your needs,
#you can change the corresponding directories, or simply do this work at your own
#and omit the AMD
i
S_USE_FILE. Then you also have to set the flags, include
#and omit the AMD
I
S_USE_FILE. Then you also have to set the flags, include
#and library directories.
...
...
@@ -37,20 +37,20 @@ unset(_AMDiS_H CACHE)
set(MTL_DIR ${AMDiS_INCLUDE_DIR}/mtl4 CACHE PATH "the mtl directory")
list(APPEND AMDiS_INCLUDE_DIRS ${MTL_DIR})
find_library(_AMDiS_LIB amdis PATHS ${AMD
i
S_LIBRARY_DIR} ${AMDiS_DIR}/../../lib/amdis/ /usr/include/amdis)
find_library(_AMDiS_LIB amdis PATHS ${AMD
I
S_LIBRARY_DIR} ${AMDiS_DIR}/../../lib/amdis/ /usr/include/amdis)
if(_AMDiS_LIB)
get_filename_component(AMD
i
S_LIBRARY_DIR ${_AMDiS_LIB} PATH CACHE)
set(AMD
i
S_LIBRARY_DIRS ${AMD
i
S_LIBRARY_DIR})
set(AMDiS_LIBRARIES "${_AMDiS_LIB};${AMD
i
S_LIBRARY_DIR}/libcompositeFEM.so" CACHE STRING "amdis libraries")
get_filename_component(AMD
I
S_LIBRARY_DIR ${_AMDiS_LIB} PATH CACHE)
set(AMD
I
S_LIBRARY_DIRS ${AMD
I
S_LIBRARY_DIR})
set(AMDiS_LIBRARIES "${_AMDiS_LIB};${AMD
I
S_LIBRARY_DIR}/libcompositeFEM.so" CACHE STRING "amdis libraries")
else()
message(ERROR "could not detect the AMDiS library directory. Please set the variable AMD
i
S_LIBRARY_DIR to the directory containg the AMDiS library")
message(ERROR "could not detect the AMDiS library directory. Please set the variable AMD
I
S_LIBRARY_DIR to the directory containg the AMDiS library")
endif()
unset(_AMDiS_LIB CACHE)
find_package(Boost 1.42 REQUIRED system iostreams)
if(Boost_FOUND)
list(APPEND AMDiS_LIBRARIES ${Boost_LIBRARIES})
list(APPEND AMD
i
S_LIBRARY_DIRS ${Boost_LIBRARY_DIRS})
list(APPEND AMD
I
S_LIBRARY_DIRS ${Boost_LIBRARY_DIRS})
list(APPEND AMDiS_INCLUDE_DIRS ${Boost_INCLUDE_DIR})
endif(Boost_FOUND)
...
...
@@ -59,7 +59,7 @@ set(AMDiS_NEED_ZOLTAN @ENABLE_ZOLTAN@)
set(AMDiS_HAS_PARALLEL_DOMAIN @ENABLE_PARALLEL_DOMAIN@)
set(AMDiS_NEED_UMFPACK @ENABLE_UMFPACK@)
set(AMDiS_NEED_MKL @ENABLE_MKL@)
set(AMD
i
S_USE_FILE ${AMDiS_DIR}/AMDiSUse.cmake)
set(AMD
I
S_USE_FILE ${AMDiS_DIR}/AMDiSUse.cmake)
set(AMDiS_COMPILEFLAGS "@COMPILEFLAGS@")
if(AMDiS_NEED_UMFPACK)
...
...
@@ -68,9 +68,9 @@ if(AMDiS_NEED_UMFPACK)
if(NOT BLAS_LIBRARY)
message(ERROR " could not find the blas library. please set the variable BLAS_LIBRARY to the blas library with full path")
endif()
list(APPEND AMDiS_LIBRARIES ${AMD
i
S_LIBRARY_DIR}/umfpack/libumfpack.a ${AMD
i
S_LIBRARY_DIR}/amd/libamd.a ${BLAS_LIBRARY})
list(APPEND AMDiS_LIBRARIES ${AMD
I
S_LIBRARY_DIR}/umfpack/libumfpack.a ${AMD
I
S_LIBRARY_DIR}/amd/libamd.a ${BLAS_LIBRARY})
#message("amdis-libs: ${AMDiS_LIBRARIES}")
list(APPEND AMD
i
S_LIBRARY_DIRS ${AMD
i
S_LIBRARY_DIR}/umfpack ${AMD
i
S_LIBRARY_DIR}/amd ${BLAS_LIBRARY_DIR})
list(APPEND AMD
I
S_LIBRARY_DIRS ${AMD
I
S_LIBRARY_DIR}/umfpack ${AMD
I
S_LIBRARY_DIR}/amd ${BLAS_LIBRARY_DIR})
list(APPEND AMDiS_INCLUDE_DIRS
${AMDiS_INCLUDE_DIR}/umfpack
${AMDiS_INCLUDE_DIR}/amd
...
...
@@ -87,8 +87,8 @@ if(${AMDiS_FIND_COMPONENTS} MATCHES umfpack )
endif()
if( AMDiS_NEED_PARMETIS )
list(APPEND AMD
i
S_LIBRARY_DIRS ${AMD
i
S_LIBRARY_DIR}/parmetis)
list(APPEND AMDiS_LIBRARIES ${AMD
i
S_LIBRARY_DIR}/parmetis/libparmetis.a ${AMD
i
S_LIBRARY_DIR}/parmetis/libmetis.a)
list(APPEND AMD
I
S_LIBRARY_DIRS ${AMD
I
S_LIBRARY_DIR}/parmetis)
list(APPEND AMDiS_LIBRARIES ${AMD
I
S_LIBRARY_DIR}/parmetis/libparmetis.a ${AMD
I
S_LIBRARY_DIR}/parmetis/libmetis.a)
endif()
if( AMDiS_NEED_ZOLTAN )
...
...
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