Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
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
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
cc668513
...
@@ -5,27 +5,28 @@ set(CMAKE_CXX_STANDARD 17)
...
@@ -5,27 +5,28 @@ set(CMAKE_CXX_STANDARD 17)
# Always keep it on
# Always keep it on
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
# Required packages
find_package
(
nlohmann_json 3.2.0 REQUIRED
)
option
(
USE_SAUTO
option
(
USE_SAUTO
"Use suspension-automata library."
OFF
"Use suspension-automata library."
OFF
)
)
option
(
USE_SILENT_BUILD
"Silent as many warnings as possible."
OFF
)
set
(
ROOT_CPP
set
(
ROOT_CPP
driver-tooling.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
set
(
LLVM_BUILD_DIR
$ENV{LLVM_BUILD_DIR}
$ENV{LLVM_BUILD_DIR}
)
)
set
(
CMAKE_CXX_FLAGS
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
)
if
(
USE_SAUTO
)
...
@@ -34,6 +35,12 @@ if (USE_SAUTO)
...
@@ -34,6 +35,12 @@ if (USE_SAUTO)
)
)
endif
(
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
set
(
LLVM_LD_FLAGS
"$ENV{LLVM_LD_FLAGS} -lpthread"
"$ENV{LLVM_LD_FLAGS} -lpthread"
...
@@ -110,8 +117,8 @@ add_executable(
...
@@ -110,8 +117,8 @@ add_executable(
${
TARGET
}
${
TARGET
}
${
ROOT_CPP
}
)
${
ROOT_CPP
}
)
target_link_libraries
(
${
TARGET
}
${
SRC_LIB
}
)
target_link_libraries
(
${
TARGET
}
${
SRC_LIB
}
nlohmann_json::nlohmann_json
)
target_link_libraries
(
${
TARGET
}
${
SAUTO_LIB
}
)
target_link_libraries
(
${
TARGET
}
${
SAUTO_LIB
}
nlohmann_json::nlohmann_json
)
foreach
(
clang_lib
${
CLANG_LIBS
}
)
foreach
(
clang_lib
${
CLANG_LIBS
}
)
target_link_libraries
(
${
TARGET
}
${
clang_lib
}
)
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
Supports
Markdown
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