@@ -41,6 +41,9 @@ set(booleforce_source
41
41
set (minibdd_source
42
42
${CMAKE_CURRENT_SOURCE_DIR} /miniBDD/example.cpp
43
43
)
44
+ set (limmat_source
45
+ ${CMAKE_CURRENT_SOURCE_DIR} /sat/satcheck_limmat.cpp
46
+ )
44
47
45
48
file (GLOB_RECURSE sources "*.cpp" )
46
49
file (GLOB_RECURSE headers "*.h" )
@@ -57,26 +60,19 @@ list(REMOVE_ITEM sources
57
60
${lingeling_source}
58
61
${booleforce_source}
59
62
${minibdd_source}
60
-
61
- # Some files just don't build
62
- ${CMAKE_CURRENT_SOURCE_DIR} /cvc/cvc_prop.cpp
63
- ${CMAKE_CURRENT_SOURCE_DIR} /dplib/dplib_prop.cpp
64
- ${CMAKE_CURRENT_SOURCE_DIR} /dplib/dplib_conv.cpp
65
- ${CMAKE_CURRENT_SOURCE_DIR} /dplib/dplib_dec.cpp
66
- ${CMAKE_CURRENT_SOURCE_DIR} /floatbv/float_approximation.cpp
67
- ${CMAKE_CURRENT_SOURCE_DIR} /sat/satcheck_limmat.cpp
68
- ${CMAKE_CURRENT_SOURCE_DIR} /smt1/smt1_prop.cpp
69
- ${CMAKE_CURRENT_SOURCE_DIR} /smt2/smt2_prop.cpp
63
+ ${limmat_source}
70
64
)
71
65
72
66
add_library (solvers ${sources} ${headers} )
73
67
74
- if ("${sat_impl} " STREQUAL "minisat2" AND TARGET minisat2-extern)
68
+ if ("${sat_impl} " STREQUAL "minisat2" )
69
+ message (STATUS "Building solvers with minisat2" )
75
70
target_sources (solvers PRIVATE ${minisat2_source} )
76
71
add_dependencies (solvers minisat2-extern)
77
72
target_compile_definitions (solvers PUBLIC SATCHECK_MINISAT2 HAVE_MINISAT2 __STDC_FORMAT_MACROS __STDC_LIMIT_MACROS)
78
73
target_link_libraries (solvers minisat2-condensed)
79
- elseif ("${sat_impl} " STREQUAL "glucose" AND TARGET glucose-extern)
74
+ elseif ("${sat_impl} " STREQUAL "glucose" )
75
+ message (STATUS "Building solvers with glucose" )
80
76
target_sources (solvers PRIVATE ${glucose_source} )
81
77
add_dependencies (solvers glucose-extern)
82
78
target_compile_definitions (solvers PUBLIC SATCHECK_GLUCOSE HAVE_GLUCOSE __STDC_FORMAT_MACROS __STDC_LIMIT_MACROS)
0 commit comments