refact: optimize regular expression initialization
add profiling test. Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
@ -15,6 +15,7 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
|
||||
set(BUILD_EXAMPLES ON CACHE BOOL "Whether to build examples or not.")
|
||||
set(DEBUG_MODE ON CACHE BOOL "start a dde-applicatiom-manager service for debug")
|
||||
set(PROFILING_MODE OFF CACHE BOOL "run a valgrind performance profiling.")
|
||||
|
||||
find_package(Qt6 REQUIRED COMPONENTS Core DBus Concurrent)
|
||||
find_package(Threads REQUIRED)
|
||||
@ -25,6 +26,10 @@ if(DEBUG_MODE)
|
||||
add_compile_definitions(-DDEBUG_MODE)
|
||||
endif()
|
||||
|
||||
if(PROFILING_MODE)
|
||||
add_compile_definitions(-DDPROFILING_MODE)
|
||||
endif()
|
||||
|
||||
add_subdirectory(src)
|
||||
add_subdirectory(plugins)
|
||||
add_subdirectory(apps)
|
||||
|
Reference in New Issue
Block a user