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