Error including sysc directory using SystemC and Cmake Linux

46 Views Asked by At

I was trying to use a library from sysc using Cmakelists.txt but it doesn't find it, the systemc.h works flawlesly. Any help? This is my Cmakelists.txt

cmake_minimum_required(VERSION 3.22)
project(Practica3_CHS)
set(CMAKE_CXX_STANDARD ${SystemC_CXX_STANDARD})

add_executable(Practica3_CHS secuencia.cpp secuencia.h practicaFSM_Secuencia.cpp)
target_link_libraries(Practica3_CHS systemc)

And this is the sample of code

#include "systemc.h"
#include <sysc/tracing/sc_vcd_trace.h>

I tried using the find_required_package(CLanguage ....) but it doesn´t work. Note that im using linux and the systemc library is in /usr/lib/sysc/... Thanks in advance. This is the exact error

fatal error: sysc/tracing/sc_vcd_trace.h: No such file or directory
2 | #include <sysc/tracing/sc_vcd_trace.h>
  |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0

There are 0 best solutions below