project() should only be called if the subdirectory, in fact, can be built standalone.
16 lines
422 B
CMake
16 lines
422 B
CMake
option(DRAMSYS_EXTENSION_DDR5_ENABLE "Enable DRAMSys DDR5 Support" ON)
|
|
|
|
if(NOT DRAMSYS_EXTENSION_DDR5_ENABLE)
|
|
return()
|
|
endif()
|
|
|
|
message(STATUS " * DDR5")
|
|
|
|
target_sources(libdramsys PRIVATE
|
|
DRAMSys/configuration/memspec/MemSpecDDR5.cpp
|
|
DRAMSys/controller/checker/CheckerDDR5.cpp
|
|
)
|
|
|
|
target_include_directories(libdramsys PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
target_compile_definitions(libdramsys PUBLIC DDR5_SIM)
|