Files
DRAMSys/extensions/standards/DDR5/CMakeLists.txt
2023-05-25 16:09:55 +02:00

15 lines
528 B
CMake

option(DRAMSYS_EXTENSION_DDR5_ENABLE "Enable DRAMSys DDR5 Support" ON)
if(DRAMSYS_EXTENSION_DDR5_ENABLE)
message(STATUS " * DDR5")
file(GLOB_RECURSE SOURCE_FILES CONFIGURE_DEPENDS *.cpp)
file(GLOB_RECURSE HEADER_FILES CONFIGURE_DEPENDS *.h;*.hpp)
target_sources(DRAMSys_libdramsys PRIVATE ${SOURCE_FILES} ${HEADER_FILES})
target_include_directories(DRAMSys_libdramsys PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_compile_definitions(DRAMSys_libdramsys PUBLIC DDR5_SIM)
build_source_group()
endif()