-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
32 lines (26 loc) · 812 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
32 lines (26 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
cmake_minimum_required( VERSION 3.20 )
project ( METIS )
#set ( GKLIB_PATH "GKlib" CACHE PATH "path to GKlib")
set ( GKLIB_PATH "GKlib" )
set ( SHARED FALSE CACHE BOOL "build a shared library" )
set ( METIS_INSTALL TRUE )
option ( METIS_ENABLE_64BIT "Enable or disable 64-bit code building" "ON" )
if ( METIS_ENABLE_64BIT )
set( BUILD64BIT 1 )
else()
set( BUILD64BIT 0 )
endif()
# Configure libmetis library.
if ( SHARED )
set ( METIS_LIBRARY_TYPE SHARED )
else()
set ( METIS_LIBRARY_TYPE STATIC )
endif()
include( ${GKLIB_PATH}/GKlibSystem.cmake )
# Add include directories.
include_directories( ${GKLIB_PATH} )
include_directories( include )
# Recursively look for CMakeLists.txt in subdirs.
add_subdirectory ( "include" )
add_subdirectory ( "libmetis" )
add_subdirectory ( "programs" )