forked from Fijee-Project/Fijee
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test CMake build process on cerebellum at UCSF
- Loading branch information
1 parent
e3a167d
commit 00b9a57
Showing
6 changed files
with
83 additions
and
23 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
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
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,12 +1,27 @@ | ||
message(STATUS "Checking for EIGEN3") | ||
# | ||
# Find the EIGEN includes and libraries | ||
# | ||
# EIGEN is a library that implements a variety of algorithms for | ||
# linear algebra, sparse matrices. | ||
# It can be found at: | ||
# | ||
# EIGEN_INCLUDE_DIR - where to find metis.h | ||
# EIGEN_LIBRARIES - List of fully qualified libraries to link against. | ||
# EIGEN_FOUND - Do not attempt to use if "no" or undefined. | ||
|
||
find_path( EIGEN_INCLUDE_DIR Eigen | ||
${EIGEN_DIR}/include/eigen3 | ||
/usr/include/eigen3 | ||
/usr/include | ||
/opt/local/include | ||
/usr/local/include | ||
) | ||
|
||
if(NOT ${EIGEN_DIR}) | ||
set(EIGEN_DIR "/usr/include/eigen3") | ||
endif() | ||
|
||
set(EIGEN_INCLUDE_DIR "/usr/include/eigen3") | ||
|
||
|
||
set(EIGEN_FOUND 1) | ||
if(EIGEN_INCLUDE_DIR) | ||
set( EIGEN_FOUND "YES" ) | ||
else() | ||
set( EIGEN_FOUND "NO" ) | ||
message(STATUS "Eigen not found") | ||
endif( EIGEN_INCLUDE_DIR ) | ||
|
||
mark_as_advanced( EIGEN_INCLUDE_DIR EIGEN_LIBRARY ) |
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,37 @@ | ||
# | ||
# Find the METIS includes and libraries | ||
# | ||
# METIS is a library that implements a variety of algorithms for | ||
# partitioning unstructured graphs, meshes, and for computing fill-reducing orderings of | ||
# sparse matrices. It can be found at: | ||
# | ||
# METIS_INCLUDE_DIR - where to find metis.h | ||
# METIS_LIBRARIES - List of fully qualified libraries to link against. | ||
# METIS_FOUND - Do not attempt to use if "no" or undefined. | ||
|
||
find_path( METIS_INCLUDE_DIR metis.h | ||
${METIS_DIR}/include | ||
/opt/local/include | ||
/usr/local/include | ||
/usr/include | ||
/usr/include/metis | ||
# $ENV{METIS_DIR}/include | ||
) | ||
|
||
find_library( METIS_LIBRARY metis | ||
HINTS ${METIS_DIR}/lib | ||
PATHS /opt/local/lib /usr/local/lib /usr/lib | ||
# $ENV{METIS_DIR}/lib | ||
) | ||
# | ||
get_filename_component( METIS_LIBRARY_DIR "${METIS_LIBRARY}" PATH) | ||
|
||
if(METIS_INCLUDE_DIR) | ||
add_definitions( -DIDXTYPEWIDTH=64 -DINTSIZE64 ) | ||
|
||
if( METIS_LIBRARY ) | ||
set( METIS_FOUND "YES" ) | ||
endif( METIS_LIBRARY ) | ||
endif( METIS_INCLUDE_DIR ) | ||
|
||
mark_as_advanced( METIS_INCLUDE_DIR METIS_LIBRARY ) |