diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-11-04 01:58:40 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-11-04 01:58:40 +0100 |
commit | dcea35a1bfc12d5ff35929971cba5a48638deb85 (patch) | |
tree | 04dbc75e16cf82e99ac379ca91b9662606bf6aaf /cmake/CMakeLists-sysc-fetch.txt | |
parent | cedf79f0264f3cdbe61a293e345bbd368e1e6c65 (diff) | |
download | sysc-playground-dcea35a1bfc12d5ff35929971cba5a48638deb85.tar.gz sysc-playground-dcea35a1bfc12d5ff35929971cba5a48638deb85.zip |
cmake: integrate systemc build into cmake build (offer source/external integration, mainly for own cmake experiments)
Diffstat (limited to 'cmake/CMakeLists-sysc-fetch.txt')
-rw-r--r-- | cmake/CMakeLists-sysc-fetch.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cmake/CMakeLists-sysc-fetch.txt b/cmake/CMakeLists-sysc-fetch.txt new file mode 100644 index 0000000..4afd154 --- /dev/null +++ b/cmake/CMakeLists-sysc-fetch.txt @@ -0,0 +1,20 @@ +# Integrate SYSTEMC as source project. +# +# FetchContent makes the dependency available during cmake configuration step +# and acts similar to *add_subdirectory*, that means all targets of the +# sub-project are available in the main project. +# +# NOTE: Target name must be unique across the main project and all sub-project, +# names may clash :^) + +include(FetchContent) + +FetchContent_Declare( + systemc + GIT_REPOSITORY https://github.com/accellera-official/systemc + GIT_TAG master + EXCLUDE_FROM_ALL +) + +# This makes all targets from the sub-project available. +FetchContent_MakeAvailable(systemc) |