diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-11-04 20:38:54 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-11-04 20:38:54 +0100 |
commit | 85f498bc0749ba8479357d96994c9b46d36c5a52 (patch) | |
tree | 9ab749888b144b9698ff24137ca1cc6c0c51c91d /cmake/SystemC-fetch.cmake | |
parent | 8fdf3ac14b5d2deb19997452fe41092442cfdff6 (diff) | |
download | sysc-playground-85f498bc0749ba8479357d96994c9b46d36c5a52.tar.gz sysc-playground-85f498bc0749ba8479357d96994c9b46d36c5a52.zip |
cmake: rename systemc files and fix Makefile
Diffstat (limited to 'cmake/SystemC-fetch.cmake')
-rw-r--r-- | cmake/SystemC-fetch.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cmake/SystemC-fetch.cmake b/cmake/SystemC-fetch.cmake new file mode 100644 index 0000000..4afd154 --- /dev/null +++ b/cmake/SystemC-fetch.cmake @@ -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) |