Building on #1874, commit adds user controls to choose or edit style in cppcheck-gui ONLY. Commit does not address CodeEditor style usage in triage app at this time. Code Editor style can be altered from the added "Code Editor" tab in the user preferences. The user has the option to select default light, default dark, or to customize. If user leaves the style set to light or dark defaults, this will be reflected in the choices shown in the preferences dialog. User choice for Code Editor Style is saved in the cppcheck-gui preferences under the heading "EditorStyle".
28 lines
779 B
CMake
28 lines
779 B
CMake
if (BUILD_GUI AND BUILD_TESTS)
|
|
set(CMAKE_AUTOMOC ON)
|
|
if (${CMAKE_BUILD_TYPE} STREQUAL "Release")
|
|
add_definitions(-DQT_NO_DEBUG)
|
|
add_definitions(-DQT_NO_DEBUG_OUTPUT)
|
|
add_definitions(-DQT_NO_WARNING_OUTPUT)
|
|
else()
|
|
add_definitions(-DQT_DEBUG)
|
|
endif()
|
|
|
|
file(GLOB hdrs "*.h")
|
|
file(GLOB srcs "*.cpp")
|
|
file(GLOB uis "*.ui")
|
|
qt5_wrap_ui(uis_hdrs ${uis})
|
|
|
|
add_executable(
|
|
triage
|
|
${hdrs}
|
|
${srcs}
|
|
${uis_hdrs}
|
|
${PROJECT_SOURCE_DIR}/gui/codeeditorstyle.cpp
|
|
${PROJECT_SOURCE_DIR}/gui/codeeditor.cpp)
|
|
target_include_directories(triage PUBLIC ${PROJECT_SOURCE_DIR}/gui/)
|
|
target_link_libraries(triage Qt5::Core Qt5::Gui Qt5::Widgets)
|
|
|
|
set(CMAKE_AUTOMOC OFF)
|
|
endif()
|