30 lines
968 B
Diff
Executable File
30 lines
968 B
Diff
Executable File
--- a/CMakeLists.txt Sat Mar 30 17:24:50 2013
|
|
+++ b/CMakeLists.txt Wed Dec 21 19:38:12 2016
|
|
@@ -16,6 +16,9 @@
|
|
# endif()
|
|
# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${MPI_COMPILE_FLAGS}")
|
|
|
|
+find_package(MPI REQUIRED)
|
|
+find_library(METIS_LIBRARY NAMES metis)
|
|
+
|
|
# Prepare libraries.
|
|
if(SHARED)
|
|
set(ParMETIS_LIBRARY_TYPE SHARED)
|
|
@@ -30,13 +33,13 @@
|
|
include_directories(include)
|
|
include_directories(${MPI_INCLUDE_PATH})
|
|
include_directories(${GKLIB_PATH})
|
|
-include_directories(${METIS_PATH}/include)
|
|
+# include_directories(${METIS_PATH}/include)
|
|
|
|
# List of directories that cmake will look for CMakeLists.txt
|
|
-add_subdirectory(${METIS_PATH}/libmetis ${CMAKE_BINARY_DIR}/libmetis)
|
|
+# add_subdirectory(${METIS_PATH}/libmetis ${CMAKE_BINARY_DIR}/libmetis)
|
|
add_subdirectory(include)
|
|
add_subdirectory(libparmetis)
|
|
-add_subdirectory(programs)
|
|
+# add_subdirectory(programs)
|
|
|
|
# This is for testing during development and is not being distributed
|
|
#add_subdirectory(test)
|