Skip to content

Commit 81e56cc

Browse files
committed
Tidy up CMakeLists
1 parent 6dae8e8 commit 81e56cc

File tree

4 files changed

+46
-30
lines changed

4 files changed

+46
-30
lines changed

CMakeLists.txt

+46
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,49 @@ if(${enable_cbmc_tests})
4141
endif()
4242
add_subdirectory(unit)
4343
add_subdirectory(regression)
44+
45+
set_target_properties(
46+
analyses
47+
ansi-c
48+
assembler
49+
big-int
50+
cbmc
51+
cbmc-lib
52+
clobber
53+
clobber-lib
54+
cpp
55+
driver
56+
goto-analyzer
57+
goto-analyzer-lib
58+
goto-cc
59+
goto-cc-lib
60+
goto-diff
61+
goto-diff-lib
62+
goto-instrument
63+
goto-instrument-lib
64+
goto-programs
65+
goto-symex
66+
java_bytecode
67+
jbmc
68+
jbmc-lib
69+
jsil
70+
json
71+
langapi
72+
linking
73+
miniBDD
74+
miniz
75+
mmcc
76+
pointer-analysis
77+
solvers
78+
string_utils
79+
test-bigint
80+
testing-utils
81+
unit
82+
util
83+
xml
84+
85+
PROPERTIES
86+
CXX_STANDARD 11
87+
CXX_STANDARD_REQUIRED true
88+
XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "Developer ID Application: Daniel Kroening"
89+
)

regression/CMakeLists.txt

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
set(CMAKE_CXX_STANDARD 11)
2-
set(CMAKE_CXX_STANDARD_REQUIRED true)
3-
41
set(test_pl_path "${CMAKE_CURRENT_SOURCE_DIR}/test.pl")
52

63
macro(add_test_pl_profile name cmdline flag profile)

src/CMakeLists.txt

-24
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,8 @@
1-
cmake_minimum_required(VERSION 3.2)
2-
3-
# TODO
4-
# -[ ] Install profiles.
5-
# -[ ] Specify one of many different solver libraries.
6-
71
project(CBMC)
82

9-
set(CMAKE_CXX_STANDARD 11)
10-
set(CMAKE_CXX_STANDARD_REQUIRED true)
11-
12-
set(CMAKE_EXPORT_COMPILE_COMMANDS true)
13-
143
find_package(BISON)
154
find_package(FLEX)
165

17-
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
18-
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
19-
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
20-
21-
include(CPack)
22-
236
find_package(Doxygen)
247
if(DOXYGEN_FOUND)
258
add_custom_target(doc
@@ -97,13 +80,6 @@ macro(add_if_library target name)
9780
endif()
9881
endmacro(add_if_library)
9982

100-
# Override add_executable to automatically sign the target on OSX.
101-
function(add_executable name)
102-
_add_executable(${name} ${ARGN})
103-
set_target_properties(${name} PROPERTIES XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY
104-
"Developer ID Application: Daniel Kroening")
105-
endfunction(add_executable)
106-
10783
add_subdirectory(analyses)
10884
add_subdirectory(ansi-c)
10985
add_subdirectory(assembler)

unit/CMakeLists.txt

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
set(CMAKE_CXX_STANDARD 11)
2-
set(CMAKE_CXX_STANDARD_REQUIRED true)
3-
41
file(GLOB_RECURSE sources "*.cpp")
52
file(GLOB_RECURSE headers "*.h")
63

0 commit comments

Comments
 (0)