Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.20)
cmake_minimum_required(VERSION 3.24)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_CURRENT_BINARY_DIR}) # project specific cmake dir
cmake_policy(SET CMP0077 NEW)

Expand Down
5 changes: 3 additions & 2 deletions TESTING.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Running Tests

This repository has a GoogleTest-based suite (see `tests/`). The tests target the CMake option `BUILD_TESTING=ON` and require the same dependencies as the main build plus GoogleTest (fetched automatically via `FetchContent`).
This repository has a Catch2 based test suite (see `tests/`).
The tests target the CMake option `BUILD_TESTING=ON` and require the same dependencies as the main build plus Catch2.

## Prerequisites

- CMake ≥ 3.20
- CMake ≥ 3.24
- A C++ compiler (GCC/Clang) with C++17 or later
- Ninja build system
- Python 3 with `conan` installed. A virtual environment is recommended:
Expand Down
8 changes: 6 additions & 2 deletions cmake/scc-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
include(CMakeFindDependencyMacro)

find_dependency(SystemCLanguage)
find_dependency(RapidJSON)
find_dependency(lwtr)
find_dependency(fstapi)
find_dependency(boost_filesystem @MIN_BOOST_VERSION@)
find_dependency(boost_date_time @MIN_BOOST_VERSION@)
find_dependency(Boost COMPONENTS date_time filesystem)
find_dependency(spdlog)
find_dependency(lz4)
find_dependency(fmt)
Expand All @@ -20,7 +20,11 @@ if(NOT TARGET scc::scc)
include("${CMAKE_CURRENT_LIST_DIR}/components-targets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/interfaces-targets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/scc-targets.cmake")
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/scc-shared-targets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/scc-shared-targets.cmake")
endif()
endif()

set(scc_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include")
set(scc_LIBRARIES scc::scc)
check_required_components(scc)
3 changes: 2 additions & 1 deletion src/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,11 @@ install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/nonstd COMPONENT util
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} # target directory
FILES_MATCHING # install only matched files
PATTERN "*.h" # select header files
PATTERN "*.hpp" # select header files
)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/rigtorp COMPONENT util
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} # target directory
FILES_MATCHING # install only matched files
PATTERN "*.h" # select header files
)


2 changes: 1 addition & 1 deletion third_party/axi_chi
21 changes: 19 additions & 2 deletions third_party/cci-1.0.1/cciapi-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,26 @@
include(CMakeFindDependencyMacro)

find_dependency(RapidJSON)
if(NOT TARGET cciapi::cciapi)
if(NOT TARGET cciapi)
include("${CMAKE_CURRENT_LIST_DIR}/cciapi-targets.cmake")
endif()

if(NOT TARGET systemc-cci::systemc-cci)
add_library(systemc-cci::systemc-cci INTERFACE IMPORTED)
set_property(TARGET systemc-cci::systemc-cci PROPERTY INTERFACE_LINK_LIBRARIES cciapi)
endif()
if(NOT TARGET SystemC::cci)
add_library(SystemC::cci INTERFACE IMPORTED)
set_property(TARGET SystemC::cci PROPERTY INTERFACE_LINK_LIBRARIES cciapi)
endif()
if(NOT TARGET cci)
add_library(cci INTERFACE IMPORTED)
set_property(TARGET cci PROPERTY INTERFACE_LINK_LIBRARIES cciapi)
endif()
if(NOT TARGET cciapi::cciapi)
add_library(cciapi::cciapi INTERFACE IMPORTED)
set_property(TARGET cciapi::cciapi PROPERTY INTERFACE_LINK_LIBRARIES cciapi)
endif()

set(cciapi_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include")
set(cciapi_lIBRARIES cciapi::cciapi)
set(cciapi_LIBRARIES cciapi::cciapi)
6 changes: 3 additions & 3 deletions third_party/fst/fstapi-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ include(CMakeFindDependencyMacro)
find_dependency(lz4)
find_dependency(ZLIB)

if(NOT TARGET scc::scc)
if(NOT TARGET fstapi)
include("${CMAKE_CURRENT_LIST_DIR}/fstapi-targets.cmake")
endif()

set(fst_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include")
set(fst_lIBRARIES fst::fst)
set(fstapi_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include")
set(fstapi_LIBRARIES fstapi)
2 changes: 1 addition & 1 deletion third_party/lwtr4sc
6 changes: 4 additions & 2 deletions third_party/scv-tr/src/scv-tr-config.cmake.in
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)

if(NOT TARGET scv-tr)
find_dependency(fmt)
include("${CMAKE_CURRENT_LIST_DIR}/scv-tr-targets.cmake")
endif()

set(tlm-interfaces_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include")
set(tlm-interfaces_lIBRARIES lwtr::lwtr)
set(scv-tr_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include")
set(scv-tr_LIBRARIES scv-tr)
Loading