2016-08-09 06:16:33 +00:00
|
|
|
diff -up cppcheck-1.75/cli/CMakeLists.txt.tinyxml cppcheck-1.75/cli/CMakeLists.txt
|
|
|
|
--- cppcheck-1.75/cli/CMakeLists.txt.tinyxml 2016-08-09 06:43:08.152146498 +0200
|
|
|
|
+++ cppcheck-1.75/cli/CMakeLists.txt 2016-08-09 06:44:12.819146690 +0200
|
2016-04-10 01:30:21 +00:00
|
|
|
@@ -1,5 +1,4 @@
|
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/lib/)
|
|
|
|
-include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/externals/tinyxml/)
|
2016-08-09 06:16:33 +00:00
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/externals/simplecpp/)
|
2016-04-10 01:30:21 +00:00
|
|
|
|
|
|
|
file(GLOB hdrs "*.h")
|
2016-08-09 06:16:33 +00:00
|
|
|
@@ -8,10 +7,11 @@ file(GLOB mainfile "main.cpp")
|
2016-04-10 01:30:21 +00:00
|
|
|
list(REMOVE_ITEM srcs ${mainfile})
|
|
|
|
|
|
|
|
add_library(cli_objs OBJECT ${hdrs} ${srcs})
|
2016-08-09 06:16:33 +00:00
|
|
|
-add_executable(cppcheck ${hdrs} ${mainfile} $<TARGET_OBJECTS:cli_objs> $<TARGET_OBJECTS:lib_objs> $<TARGET_OBJECTS:tinyxml_objs> $<TARGET_OBJECTS:simplecpp_objs>)
|
|
|
|
+add_executable(cppcheck ${hdrs} ${mainfile} $<TARGET_OBJECTS:cli_objs> $<TARGET_OBJECTS:lib_objs> $<TARGET_OBJECTS:simplecpp_objs>)
|
2016-04-10 01:30:21 +00:00
|
|
|
if (HAVE_RULES)
|
|
|
|
target_link_libraries(cppcheck pcre)
|
|
|
|
endif()
|
2016-08-09 06:16:33 +00:00
|
|
|
+target_link_libraries(cppcheck tinyxml2)
|
2016-04-10 01:30:21 +00:00
|
|
|
|
|
|
|
install(TARGETS cppcheck
|
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_BINDIR}
|
2016-08-09 06:16:33 +00:00
|
|
|
diff -up cppcheck-1.75/CMakeLists.txt.tinyxml cppcheck-1.75/CMakeLists.txt
|
|
|
|
--- cppcheck-1.75/CMakeLists.txt.tinyxml 2016-08-09 06:43:08.153146498 +0200
|
|
|
|
+++ cppcheck-1.75/CMakeLists.txt 2016-08-09 06:43:31.191146016 +0200
|
2016-04-10 01:30:21 +00:00
|
|
|
@@ -16,7 +16,6 @@ if (BUILD_TESTS)
|
|
|
|
enable_testing()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
-add_subdirectory(externals/tinyxml)
|
2016-08-09 06:16:33 +00:00
|
|
|
add_subdirectory(externals/simplecpp)
|
2016-04-10 01:30:21 +00:00
|
|
|
add_subdirectory(lib) # CppCheck Library
|
|
|
|
add_subdirectory(cli) # Client application
|
2016-08-09 06:16:33 +00:00
|
|
|
diff -up cppcheck-1.75/gui/CMakeLists.txt.tinyxml cppcheck-1.75/gui/CMakeLists.txt
|
|
|
|
--- cppcheck-1.75/test/CMakeLists.txt.tinyxml 2016-08-09 06:43:08.155146498 +0200
|
|
|
|
+++ cppcheck-1.75/test/CMakeLists.txt 2016-08-09 06:45:26.020153572 +0200
|
|
|
|
@@ -1,16 +1,16 @@
|
2016-04-10 01:30:21 +00:00
|
|
|
if (BUILD_TESTS)
|
|
|
|
|
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/lib/ ${PROJECT_SOURCE_DIR}/cli/)
|
|
|
|
- include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/externals/tinyxml)
|
2016-08-09 06:16:33 +00:00
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/externals/simplecpp/)
|
2016-04-10 01:30:21 +00:00
|
|
|
|
|
|
|
file(GLOB hdrs "*.h")
|
|
|
|
file(GLOB srcs "*.cpp")
|
|
|
|
|
2016-08-09 06:16:33 +00:00
|
|
|
- add_executable(testrunner ${hdrs} ${srcs} $<TARGET_OBJECTS:lib_objs> $<TARGET_OBJECTS:cli_objs> $<TARGET_OBJECTS:tinyxml_objs> $<TARGET_OBJECTS:simplecpp_objs>)
|
|
|
|
+ add_executable(testrunner ${hdrs} ${srcs} $<TARGET_OBJECTS:lib_objs> $<TARGET_OBJECTS:cli_objs> $<TARGET_OBJECTS:simplecpp_objs>)
|
2016-04-10 01:30:21 +00:00
|
|
|
if (HAVE_RULES)
|
|
|
|
target_link_libraries(testrunner pcre)
|
|
|
|
endif()
|
2016-08-09 06:16:33 +00:00
|
|
|
+ target_link_libraries(testrunner tinyxml2)
|
|
|
|
|
|
|
|
add_custom_target(copy_cfg ALL
|
|
|
|
COMMENT "Copying cfg files")
|
2017-01-31 21:02:36 +00:00
|
|
|
--- cppcheck-1.77/gui/CMakeLists.txt.orig 2017-01-31 12:46:53.394879690 -0600
|
|
|
|
+++ cppcheck-1.77/gui/CMakeLists.txt 2017-01-31 12:47:57.626549785 -0600
|
|
|
|
@@ -11,7 +11,6 @@
|
|
|
|
endif()
|
|
|
|
|
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/lib/)
|
|
|
|
- include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/externals/tinyxml/)
|
|
|
|
|
|
|
|
file(GLOB hdrs "*.h")
|
|
|
|
file(GLOB srcs "*.cpp")
|
|
|
|
@@ -21,12 +20,13 @@
|
|
|
|
QT4_ADD_RESOURCES(resources "gui.qrc")
|
|
|
|
QT4_ADD_TRANSLATION(qms ${tss})
|
|
|
|
|
|
|
|
- add_executable(cppcheck-gui ${hdrs} ${srcs} ${uis_hdrs} ${resources} ${qms} $<TARGET_OBJECTS:lib_objs> $<TARGET_OBJECTS:tinyxml_objs> $<TARGET_OBJECTS:simplecpp_objs>)
|
|
|
|
+ add_executable(cppcheck-gui ${hdrs} ${srcs} ${uis_hdrs} ${resources} ${qms} $<TARGET_OBJECTS:lib_objs> $<TARGET_OBJECTS:simplecpp_objs>)
|
|
|
|
target_link_libraries(cppcheck-gui ${QT_LIBRARIES})
|
|
|
|
if (HAVE_RULES)
|
|
|
|
target_link_libraries(cppcheck-gui pcre)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
+ target_link_libraries(cppcheck-gui tinyxml2)
|
|
|
|
|
|
|
|
install(TARGETS cppcheck-gui RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} COMPONENT applications)
|
|
|
|
install(FILES ${qms} DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} COMPONENT applications)
|