-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
39 lines (31 loc) · 840 Bytes
/
CMakeLists.txt
File metadata and controls
39 lines (31 loc) · 840 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
33
34
35
36
37
38
39
CMAKE_MINIMUM_REQUIRED(VERSION 3.9)
PROJECT(graph-coloring)
ADD_SUBDIRECTORY(googletest)
ADD_SUBDIRECTORY(gflags)
SET(CMAKE_CXX_STANDARD 11)
ADD_LIBRARY(graph-coloring SHARED
Source/coloring_algorithm.cpp
Source/dsatur.cpp
Source/mcs.cpp
Source/lmxrlf.cpp
Source/tabucol.cpp
Source/hybrid_dsatur.cpp
Source/hybrid_lmxrlf.cpp
)
ADD_EXECUTABLE(color-test
Source/test.cpp
Tests/dsatur_tests.cpp
Tests/lmxrlf_tests.cpp
Tests/mcs_tests.cpp
Tests/tabucol_tests.cpp
Tests/hybrid_lmxrlf_tests.cpp
Tests/hybrid_dsatur_tests.cpp
)
ADD_EXECUTABLE(color
Source/main.cpp
)
TARGET_LINK_LIBRARIES(color-test gflags)
TARGET_LINK_LIBRARIES(color-test graph-coloring)
TARGET_LINK_LIBRARIES(color-test gtest)
TARGET_LINK_LIBRARIES(color gflags)
TARGET_LINK_LIBRARIES(color graph-coloring)