Mercurial > trustbridge
comparison ui/CMakeLists.txt @ 1331:8897c90b8166
(issue108) Remove generate_cppcheck and cppcheck target
This did not work correctly. It is better just to manually
execute cppcheck on the files as it gives you more control over
the options.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 15 Oct 2014 13:24:59 +0200 |
parents | 60927efa48cc |
children | c64b6c56ce96 |
comparison
equal
deleted
inserted
replaced
1330:c7349696d812 | 1331:8897c90b8166 |
---|---|
109 | 109 |
110 add_definitions(-DUNICODE) | 110 add_definitions(-DUNICODE) |
111 endif() | 111 endif() |
112 | 112 |
113 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}") | 113 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}") |
114 | |
115 generate_cppcheck(SOURCES ${CINST_SOURCES} ${TRUSTBRIDGE_SOURCES} TARGET_NAME custom_cppcheck) | |
116 add_dependencies(static_check custom_cppcheck) | |
117 | 114 |
118 # Adding resources here in an extra variable to enable reuse of | 115 # Adding resources here in an extra variable to enable reuse of |
119 # TRUSTBRIDGE_SOURCES in the test subdirectory. | 116 # TRUSTBRIDGE_SOURCES in the test subdirectory. |
120 set(TRUSTBRIDGE_MAIN_WITH_RESOURCES ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp | 117 set(TRUSTBRIDGE_MAIN_WITH_RESOURCES ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp |
121 ${CMAKE_CURRENT_SOURCE_DIR}/img/icon.rc) | 118 ${CMAKE_CURRENT_SOURCE_DIR}/img/icon.rc) |