forked from alidasdan/hypergraph-partitioning-algorithms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (27 loc) · 867 Bytes
/
CMakeLists.txt
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
33
34
35
cmake_minimum_required(VERSION 3.1.0)
project(HGPA C)
include(CMakeDependentOption)
get_property(SUPPORTS_SHARED GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS)
cmake_dependent_option(BUILD_SHARED_LIBS "Enable shared libraries" ON
"SUPPORTS_SHARED;ENABLE_SHARED_LIBRARIES" OFF)
option(ENABLE_TRACE "Enable partition trace" OFF)
if(ENABLE_TRACE)
add_definitions(-DAD_TRACE=1)
endif()
# Add c99 Standard flag
if (CMAKE_VERSION VERSION_LESS "3.1")
set(CMAKE_C_FLAGS "--std=c99 ${CMAKE_C_FLAGS}")
else ()
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_EXTENSIONS OFF)
endif ()
include_directories(src/share)
# Add check target
enable_testing()
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} -V)
include_directories(include)
add_subdirectory(src/share)
add_subdirectory(src/fms)
add_subdirectory(src/pfm)
add_subdirectory(src/plm)
add_subdirectory(src/sa)