File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ if (BUILD_TESTS)
1717endif ()
1818
1919add_subdirectory (externals/tinyxml )
20+ add_subdirectory (externals/simplecpp )
2021add_subdirectory (lib ) # CppCheck Library
2122add_subdirectory (cli ) # Client application
2223add_subdirectory (test ) # Tests
Original file line number Diff line number Diff line change 11include_directories (${PROJECT_SOURCE_DIR} /lib/ )
22include_directories (SYSTEM ${PROJECT_SOURCE_DIR} /externals/tinyxml/ )
3+ include_directories (${PROJECT_SOURCE_DIR} /externals/simplecpp/ )
34
45file (GLOB hdrs "*.h" )
56file (GLOB srcs "*.cpp" )
67file (GLOB mainfile "main.cpp" )
78list (REMOVE_ITEM srcs ${mainfile} )
89
910add_library (cli_objs OBJECT ${hdrs} ${srcs} )
10- add_executable (cppcheck ${hdrs} ${mainfile} $<TARGET_OBJECTS :cli_objs > $<TARGET_OBJECTS :lib_objs > $<TARGET_OBJECTS :tinyxml_objs >)
11+ add_executable (cppcheck ${hdrs} ${mainfile} $<TARGET_OBJECTS :cli_objs > $<TARGET_OBJECTS :lib_objs > $<TARGET_OBJECTS :tinyxml_objs > $< TARGET_OBJECTS : simplecpp_objs > )
1112if (HAVE_RULES)
1213 target_link_libraries (cppcheck pcre )
1314endif ()
Original file line number Diff line number Diff line change 1+ file (GLOB hdrs "*.h" )
2+ file (GLOB srcs "*.cpp" )
3+
4+ add_library (simplecpp_objs OBJECT ${srcs} ${hdrs} )
5+
6+
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ if (BUILD_GUI)
2121 QT4_ADD_RESOURCES (resources "gui.qrc" )
2222 QT4_ADD_TRANSLATION (qms ${tss} )
2323
24- add_executable (cppcheck-gui ${hdrs} ${srcs} ${uis_hdrs} ${resources} ${qms} $<TARGET_OBJECTS :lib_objs > $<TARGET_OBJECTS :tinyxml_objs >)
24+ add_executable (cppcheck-gui ${hdrs} ${srcs} ${uis_hdrs} ${resources} ${qms} $<TARGET_OBJECTS :lib_objs > $<TARGET_OBJECTS :tinyxml_objs > $< TARGET_OBJECTS : simplecpp_objs > )
2525 target_link_libraries (cppcheck-gui ${QT_LIBRARIES} )
2626 if (HAVE_RULES)
2727 target_link_libraries (cppcheck-gui pcre )
Original file line number Diff line number Diff line change 11include_directories (SYSTEM ${PROJECT_SOURCE_DIR} /externals/tinyxml/ )
2+ include_directories (${PROJECT_SOURCE_DIR} /externals/simplecpp/ )
23
34file (GLOB_RECURSE hdrs "*.h" )
45file (GLOB_RECURSE srcs "*.cpp" )
Original file line number Diff line number Diff line change @@ -2,11 +2,12 @@ if (BUILD_TESTS)
22
33 include_directories (${PROJECT_SOURCE_DIR} /lib/ ${PROJECT_SOURCE_DIR} /cli/ )
44 include_directories (SYSTEM ${PROJECT_SOURCE_DIR} /externals/tinyxml )
5+ include_directories (${PROJECT_SOURCE_DIR} /externals/simplecpp/ )
56
67 file (GLOB hdrs "*.h" )
78 file (GLOB srcs "*.cpp" )
89
9- add_executable (testrunner ${hdrs} ${srcs} $<TARGET_OBJECTS :lib_objs > $<TARGET_OBJECTS :cli_objs > $<TARGET_OBJECTS :tinyxml_objs >)
10+ add_executable (testrunner ${hdrs} ${srcs} $<TARGET_OBJECTS :lib_objs > $<TARGET_OBJECTS :cli_objs > $<TARGET_OBJECTS :tinyxml_objs > $< TARGET_OBJECTS : simplecpp_objs > )
1011 if (HAVE_RULES)
1112 target_link_libraries (testrunner pcre )
1213 endif ()
You can’t perform that action at this time.
0 commit comments