Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
caesr-pub
systemc-clang
Commits
cc668513
Commit
cc668513
authored
Jul 11, 2019
by
rmrf
Browse files
Add CMakeLists.txt for new tests director
parent
39c13572
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18771 additions
and
16970 deletions
+18771
-16970
CMakeLists.txt
CMakeLists.txt
+19
-12
src/json.hpp
src/json.hpp
+18751
-16958
tests/CMakeLists.txt
tests/CMakeLists.txt
+1
-0
No files found.
CMakeLists.txt
View file @
cc668513
...
...
@@ -5,27 +5,28 @@ set(CMAKE_CXX_STANDARD 17)
# Always keep it on
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
# Required packages
find_package
(
nlohmann_json 3.2.0 REQUIRED
)
option
(
USE_SAUTO
"Use suspension-automata library."
OFF
)
option
(
USE_SILENT_BUILD
"Silent as many warnings as possible."
OFF
)
set
(
ROOT_CPP
driver-tooling.cpp
# ToolingTest.cpp
# ToolingTutorial.cpp
)
# set (CLANG_SRC_DIR
# $ENV{CLANG_SRC_DIR}
# )
# set (LLVM_SRC_DIR
# $ENV{LLVM_SRC_DIR}
# )
set
(
LLVM_BUILD_DIR
$ENV{LLVM_BUILD_DIR}
)
set
(
CMAKE_CXX_FLAGS
"$ENV{LLVM_CXX_FLAGS} $ENV{CMAKE_CXX_FLAGS} -DUSE_SAUTO=off"
"$ENV{LLVM_CXX_FLAGS} $ENV{CMAKE_CXX_FLAGS} -DUSE_SAUTO=off
"
)
if
(
USE_SAUTO
)
...
...
@@ -34,6 +35,12 @@ if (USE_SAUTO)
)
endif
(
USE_SAUTO
)
if
(
USE_SILENT_BUILD
)
set
(
CMAKE_CXX_FLAGS
"-DUSE_SILENT_BUILD=on
${
CMAKE_CXX_FLAGS
}
-Wcovered-switch-default"
)
endif
(
USE_SILENT_BUILD
)
set
(
LLVM_LD_FLAGS
"$ENV{LLVM_LD_FLAGS} -lpthread"
...
...
@@ -110,8 +117,8 @@ add_executable(
${
TARGET
}
${
ROOT_CPP
}
)
target_link_libraries
(
${
TARGET
}
${
SRC_LIB
}
)
target_link_libraries
(
${
TARGET
}
${
SAUTO_LIB
}
)
target_link_libraries
(
${
TARGET
}
${
SRC_LIB
}
nlohmann_json::nlohmann_json
)
target_link_libraries
(
${
TARGET
}
${
SAUTO_LIB
}
nlohmann_json::nlohmann_json
)
foreach
(
clang_lib
${
CLANG_LIBS
}
)
target_link_libraries
(
${
TARGET
}
${
clang_lib
}
)
...
...
src/json.hpp
View file @
cc668513
This diff is collapsed.
Click to expand it.
tests/CMakeLists.txt
0 → 100644
View file @
cc668513
# Test CMakeFile
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment