Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Aland, Sebastian
amdis
Commits
7cde5539
Commit
7cde5539
authored
Mar 31, 2011
by
Naumann, Andreas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
capital i...
parent
51280698
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
AMDiS/AMDiSConfig.cmake.in
AMDiS/AMDiSConfig.cmake.in
+16
-16
No files found.
AMDiS/AMDiSConfig.cmake.in
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 )
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment