Move the code for the Trace Analyzer to the open source tree and only keep the extensions behind a compiler flag.
15 lines
583 B
CMake
15 lines
583 B
CMake
option(DRAMSYS_EXTENSION_TRACE_ANALYZER_ENABLE "Enable Trace Analyzer extension" ON)
|
|
|
|
if(DRAMSYS_EXTENSION_TRACE_ANALYZER_ENABLE AND TARGET TraceAnalyzer)
|
|
message(STATUS " * Trace Analyzer")
|
|
|
|
file(GLOB_RECURSE SOURCE_FILES CONFIGURE_DEPENDS *.cpp)
|
|
file(GLOB_RECURSE HEADER_FILES CONFIGURE_DEPENDS *.h;*.hpp)
|
|
|
|
target_sources(TraceAnalyzer PRIVATE ${SOURCE_FILES} ${HEADER_FILES})
|
|
target_include_directories(TraceAnalyzer PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
|
target_compile_definitions(TraceAnalyzer PRIVATE EXTENSION_ENABLED)
|
|
|
|
build_source_group()
|
|
endif()
|