@@ -10,23 +10,28 @@ install(
10
10
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
11
11
)
12
12
13
- add_executable (btorsim
14
- btorsim/btorsimam.cpp
15
- btorsim/btorsimstate.cpp
16
- btorsim/btorsimvcd.cpp
17
- btorsim/btorsimhelpers.cpp
18
- btorsim/btorsim.cpp
19
- btorsim/btorsimbv.c
20
- btorsim/btorsimrng.c
21
- )
22
- target_include_directories (btorsim PRIVATE .)
23
- target_link_libraries (btorsim btor2parser)
24
- target_compile_options (btorsim PRIVATE -Wall -Wfatal-errors)
25
- install (TARGETS btorsim DESTINATION ${CMAKE_INSTALL_BINDIR} )
13
+ if (BUILD_TOOLS)
14
+ add_executable (btorsim
15
+ btorsim/btorsimam.cpp
16
+ btorsim/btorsimstate.cpp
17
+ btorsim/btorsimvcd.cpp
18
+ btorsim/btorsimhelpers.cpp
19
+ btorsim/btorsim.cpp
20
+ btorsim/btorsimbv.c
21
+ btorsim/btorsimrng.c
22
+ )
23
+ target_include_directories (btorsim PRIVATE .)
24
+ target_link_libraries (btorsim btor2parser)
25
+ target_compile_options (btorsim PRIVATE -Wall -Wfatal-errors)
26
+ install (TARGETS btorsim DESTINATION ${CMAKE_INSTALL_BINDIR} )
26
27
27
- add_executable (catbtor catbtor.c)
28
- target_link_libraries (catbtor btor2parser)
29
- install (TARGETS catbtor DESTINATION ${CMAKE_INSTALL_BINDIR} )
28
+ add_executable (catbtor catbtor.c)
29
+ target_link_libraries (catbtor btor2parser)
30
+ install (TARGETS catbtor DESTINATION ${CMAKE_INSTALL_BINDIR} )
31
+
32
+ add_executable (btorsplit btorsplit.cpp)
33
+ install (TARGETS btorsplit DESTINATION ${CMAKE_INSTALL_BINDIR} )
34
+ endif ()
30
35
31
36
if (BUILD_BTOR2AIGER)
32
37
add_executable (btor2aiger
@@ -38,6 +43,3 @@ if(BUILD_BTOR2AIGER)
38
43
target_link_libraries (btor2aiger btor2parser Boolector::boolector)
39
44
install (TARGETS btor2aiger DESTINATION ${CMAKE_INSTALL_BINDIR} )
40
45
endif ()
41
-
42
- add_executable (btorsplit btorsplit.cpp)
43
- install (TARGETS btorsplit DESTINATION ${CMAKE_INSTALL_BINDIR} )
0 commit comments