Skip to content

Commit 1822a88

Browse files
committed
Add the api as a static library in CMakeLists.txt
1 parent a88feea commit 1822a88

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ cprover_default_properties(
216216
cbmc
217217
cbmc-lib
218218
cpp
219+
api_bin
219220
bmc_api
220221
cprover
221222
cprover-lib

cpp_api/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11

22

3-
add_executable(bmc_api call_bmc.cpp api.cpp)
3+
add_executable(api_bin call_bmc.cpp api.cpp)
4+
5+
add_library(bmc_api api.cpp)
46

57
target_link_libraries(bmc_api goto-programs util langapi ansi-c)
8+
target_link_libraries(api_bin goto-programs util langapi ansi-c)

0 commit comments

Comments
 (0)