-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
71 lines (52 loc) · 1.78 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
cmake_minimum_required(VERSION 3.20)
project(QASP C CXX)
#
# Config options
#
## Grounder
set(HAVE_GRINGO 1)
set(HAVE_GRINGO_EXTERNAL 0)
set(HAVE_IDLV 0)
## Solver
set(HAVE_WASP 1)
set(HAVE_CLASP 0)
## QASP
set(HAVE_THREADS 1)
set(HAVE_CACHE 1)
set(HAVE_MODE_LOOK_AHEAD 1)
set(HAVE_MODE_COUNTER_EXAMPLE 1)
## Wasp
set(HAVE_WASP_ASSUMPTIONS 1)
set(HAVE_WASP_RESET 1)
## Logger
set(HAVE_PRETTY_LOGGER 1)
set(HAVE_PERFORMANCE 0)
# Build Test Options
set(ENABLE_COVERAGE 0)
set(ENABLE_PROFILING 0)
set(ENABLE_NATIVE 0)
set(ENABLE_STATIC 1)
######################################
include(cmake/version.cmake)
include(cmake/package.cmake)
include(cmake/deps.cmake)
include(cmake/build.cmake)
include(CPack)
include(GNUInstallDirs)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR})
configure_file(
${PROJECT_SOURCE_DIR}/config.h.in
${PROJECT_BINARY_DIR}/config.h
)
enable_testing()
add_subdirectory(src)
#add_subdirectory(test/big)
add_subdirectory(test/little)
install(TARGETS qaspcli qasp
RUNTIME PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE WORLD_READ WORLD_WRITE
ARCHIVE PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ GROUP_WRITE WORLD_READ WORLD_WRITE
LIBRARY PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ GROUP_WRITE WORLD_READ WORLD_WRITE
PUBLIC_HEADER PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ GROUP_WRITE WORLD_READ WORLD_WRITE DESTINATION "include/qasp"
)