-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
29 lines (22 loc) · 876 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
cmake_minimum_required(VERSION 2.8)
project(a4-ece650)
if (EXISTS "${CMAKE_SOURCE_DIR}/minisat")
add_subdirectory(minisat)
else()
message (FATAL_ERROR "MiniSat not found. Use `git clone https://github.com/agurfinkel/minisat` to check it out.")
endif()
## ECE650 Specific configuration start here
## Project specific configurations go here
# enable c++11 support
set (CMAKE_CXX_FLAGS "-std=c++11 -pthread -Wall ${CMAKE_CXX_FLAGS}")
# expose minisat header files
include_directories(${CMAKE_SOURCE_DIR}/minisat)
# create the main executable
## add additional .cpp files if needed
add_executable(ece650-prj ece650-prj.cpp cnfsatvc.cpp approxvcs.cpp)
# link MiniSAT libraries
target_link_libraries(ece650-prj minisat-lib-static)
# create the executable for tests
# add_executable(test test.cpp)
# link MiniSAT libraries
# target_link_libraries(test minisat-lib-static)