Skip to content

Commit

Permalink
Moving to the new style cppcheck target. Refs #4368.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Jan 3, 2012
1 parent d1007c4 commit 7baf7af
Show file tree
Hide file tree
Showing 36 changed files with 21 additions and 59 deletions.
13 changes: 8 additions & 5 deletions Code/Mantid/Build/CMake/CommonSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,14 @@ if ( CPPCHECK_EXECUTABLE )
list( APPEND _cppcheck_xml_args --xml --xml-version=2 2> ${CMAKE_BINARY_DIR}/cppcheck.xml )
endif (CPPCHECK_GENERATE_XML)

add_custom_target ( cppcheck_byhand
COMMAND ${CPPCHECK_EXECUTABLE} ${_cppcheck_args} . ${_cppcheck_xml_args}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMENT "Running cppcheck"
)
if (NOT TARGET cppcheck)
add_custom_target ( cppcheck
COMMAND ${CPPCHECK_EXECUTABLE} ${_cppcheck_args} . ${_cppcheck_xml_args}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMENT "Running cppcheck"
)
set_target_properties(cppcheck PROPERTIES EXCLUDE_FROM_ALL TRUE)
endif()
endif ( CPPCHECK_EXECUTABLE )


Expand Down
26 changes: 13 additions & 13 deletions Code/Mantid/Build/CMake/FindCppcheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@ if(CPPCHECK_EXECUTABLE OR CPPCHECK_MARK_AS_ADVANCED)
mark_as_advanced(CPPCHECK_ROOT_DIR)
endif()

if(CPPCHECK_EXECUTABLE)
if(NOT TARGET cppcheck)
add_custom_target(cppcheck)
set_target_properties(cppcheck PROPERTIES EXCLUDE_FROM_ALL TRUE)
endif()
execute_process ( COMMAND ${CPPCHECK_EXECUTABLE} --version
OUTPUT_VARIABLE CPPCHECK_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE )
string ( TOUPPER ${CPPCHECK_VERSION} CPPCHECK_VERSION )
string ( REPLACE "CPPCHECK" "" CPPCHECK_VERSION ${CPPCHECK_VERSION} )
string ( STRIP ${CPPCHECK_VERSION} CPPCHECK_VERSION )
message ( STATUS "cppcheck version: ${CPPCHECK_VERSION}" )
endif()
#if(CPPCHECK_EXECUTABLE)
# if(NOT TARGET cppcheck)
# add_custom_target(cppcheck)
# set_target_properties(cppcheck PROPERTIES EXCLUDE_FROM_ALL TRUE)
# endif()
# execute_process ( COMMAND ${CPPCHECK_EXECUTABLE} --version
# OUTPUT_VARIABLE CPPCHECK_VERSION
# OUTPUT_STRIP_TRAILING_WHITESPACE )
# string ( TOUPPER ${CPPCHECK_VERSION} CPPCHECK_VERSION )
# string ( REPLACE "CPPCHECK" "" CPPCHECK_VERSION ${CPPCHECK_VERSION} )
# string ( STRIP ${CPPCHECK_VERSION} CPPCHECK_VERSION )
# message ( STATUS "cppcheck version: ${CPPCHECK_VERSION}" )
#endif()

mark_as_advanced(CPPCHECK_EXECUTABLE)
set ( CPPCHECK_ARGS "--enable=all" CACHE STRING "Arguments for running cppcheck" )
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/Framework/API/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ endif ()
ADD_PRECOMPILED_HEADER( inc/MantidAPI/PrecompiledHeader.h MantidAPI src/PrecompiledHeader.cpp SRC_FILES INC_FILES )
# Add the target for this directory
add_library ( API ${SRC_FILES} ${INC_FILES})
add_cppcheck ( API )
# Set the name of the generated library
set_target_properties ( API PROPERTIES OUTPUT_NAME MantidAPI
COMPILE_DEFINITIONS IN_MANTID_API )
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/Framework/Algorithms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,6 @@ endif(UNITY_BUILD)
ADD_PRECOMPILED_HEADER( inc/MantidAlgorithms/PrecompiledHeader.h MantidAlgorithms src/PrecompiledHeader.cpp SRC_FILES INC_FILES )
# Add the target for this directory
add_library ( Algorithms ${SRC_FILES} ${INC_FILES})
add_cppcheck ( Algorithms )
# Set the name of the generated library
set_target_properties ( Algorithms PROPERTIES OUTPUT_NAME MantidAlgorithms )
# Add to the 'Framework' group in VS
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/Framework/Crystal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ endif(UNITY_BUILD)

# Add the target for this directory
add_library ( Crystal ${SRC_FILES} ${INC_FILES})
add_cppcheck( Crystal )
# Set the name of the generated library
set_target_properties ( Crystal PROPERTIES OUTPUT_NAME MantidCrystal )
# Add to the 'Framework' group in VS
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/Framework/CurveFitting/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ endif(UNITY_BUILD)
ADD_PRECOMPILED_HEADER( inc/MantidCurveFitting/PrecompiledHeader.h MantidCurveFitting src/PrecompiledHeader.cpp SRC_FILES INC_FILES )
# Add the target for this directory
add_library ( CurveFitting ${SRC_FILES} ${INC_FILES})
add_cppcheck( CurveFitting )
# Set the name of the generated library
set_target_properties ( CurveFitting PROPERTIES OUTPUT_NAME MantidCurveFitting )
# Add to the 'Framework' group in VS
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/Framework/DataHandling/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ endif(UNITY_BUILD)
ADD_PRECOMPILED_HEADER( inc/MantidDataHandling/PrecompiledHeader.h MantidDataHandling src/PrecompiledHeader.cpp SRC_FILES INC_FILES )
# Add the target for this directory
add_library ( DataHandling ${SRC_FILES} ${INC_FILES})
add_cppcheck( DataHandling )
# Set the name of the generated library
set_target_properties ( DataHandling PROPERTIES OUTPUT_NAME MantidDataHandling )
# Add to the 'Framework' group in VS
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/Framework/DataObjects/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ endif(UNITY_BUILD)
ADD_PRECOMPILED_HEADER( inc/MantidDataObjects/PrecompiledHeader.h MantidDataObjects src/PrecompiledHeader.cpp SRC_FILES INC_FILES )
# Add the target for this directory
add_library ( DataObjects ${SRC_FILES} ${INC_FILES})
add_cppcheck( DataObjects )
# Set the name of the generated library
set_target_properties ( DataObjects PROPERTIES OUTPUT_NAME MantidDataObjects
COMPILE_DEFINITIONS IN_MANTID_DATA_OBJECTS )
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/Framework/GPUAlgorithms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ set ( KERNEL_FILES

# Add the target for this directory
add_library ( GPUAlgorithms ${SRC_FILES} ${INC_FILES} )
add_cppcheck( GPUAlgorithms )
# Set the name of the generated library
set_target_properties ( GPUAlgorithms PROPERTIES OUTPUT_NAME MantidGPUAlgorithms )
# Add to the 'Framework' group in VS
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/Framework/Geometry/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ endif ()
ADD_PRECOMPILED_HEADER( inc/MantidGeometry/PrecompiledHeader.h MantidGeometry src/PrecompiledHeader.cpp SRC_FILES INC_FILES )
# Add the target for this directory
add_library ( Geometry ${SRC_FILES} ${INC_FILES} )
add_cppcheck( Geometry )
# Set the name of the generated library
set_target_properties ( Geometry PROPERTIES OUTPUT_NAME MantidGeometry
COMPILE_DEFINITIONS IN_MANTID_GEOMETRY )
Expand Down
7 changes: 0 additions & 7 deletions Code/Mantid/Framework/ICat/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,6 @@ add_definitions ( -DWITH_OPENSSL -DWITH_NONAMESPACES )
ADD_PRECOMPILED_HEADER( inc/MantidICat/PrecompiledHeader.h MantidICat src/PrecompiledHeader.cpp SRC_FILES INC_FILES )
# Add the target for this directory
add_library ( ICat ${SRC_FILES} ${INC_FILES})
add_cppcheck( ICat
inc/MantidICat/GSoapGenerated/soapH.h
inc/MantidICat/GSoapGenerated/soapICATPortBindingProxy.h
inc/MantidICat/GSoapGenerated/soapStub.h
src/GSoapGenerated.cpp
src/GSoapGenerated/soapC.cpp
src/GSoapGenerated/soapICATPortBindingProxy.cpp )
# Set the name of the generated library
set_target_properties ( ICat PROPERTIES OUTPUT_NAME MantidICat
COMPILE_DEFINITIONS IN_MANTID_ICAT )
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/Framework/Kernel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ endif(UNITY_BUILD)
ADD_PRECOMPILED_HEADER ( inc/MantidKernel/PrecompiledHeader.h MantidKernel src/PrecompiledHeader.cpp SRC_FILES INC_FILES )
# Add the target for this directory
add_library ( Kernel ${SRC_FILES} ${INC_FILES} )
add_cppcheck( Kernel )
# Set the name of the generated library
set_target_properties ( Kernel PROPERTIES OUTPUT_NAME MantidKernel
COMPILE_DEFINITIONS "IN_MANTID_KERNEL;PSAPI_VERSION=1" )
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/Framework/MDAlgorithms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ endif(UNITY_BUILD)
ADD_PRECOMPILED_HEADER( inc/MantidMDAlgorithms/PrecompiledHeader.h MantidMDAlgorithms src/PrecompiledHeader.cpp SRC_FILES INC_FILES )
# Add the target for this directory
add_library ( MDAlgorithms ${SRC_FILES} ${INC_FILES})
add_cppcheck( MDAlgorithms )
# Set the name of the generated library
set_target_properties ( MDAlgorithms PROPERTIES OUTPUT_NAME MantidMDAlgorithms
COMPILE_DEFINITIONS IN_MANTID_MDALGORITHMS )
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/Framework/MDEvents/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ endif(UNITY_BUILD)
ADD_PRECOMPILED_HEADER( inc/MantidMDEvents/PrecompiledHeader.h MantidMDEvents src/PrecompiledHeader.cpp SRC_FILES INC_FILES )
# Add the target for this directory
add_library ( MDEvents ${SRC_FILES} ${INC_FILES})
add_cppcheck( MDEvents )
# Set the name of the generated library
set_target_properties ( MDEvents PROPERTIES OUTPUT_NAME MantidMDEvents
COMPILE_DEFINITIONS IN_MANTID_MDEVENT )
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/Framework/MPIAlgorithms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ set ( TEST_FILES test/BroadcastWorkspaceTest.h

# Add the target for this directory
add_library ( MPIAlgorithms ${SRC_FILES} ${INC_FILES} )
add_cppcheck( MPIAlgorithms )
# Set the name of the generated library
set_target_properties ( MPIAlgorithms PROPERTIES OUTPUT_NAME MantidMPIAlgorithms )
# Add to the 'Framework' group in VS
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/Framework/MatlabAPI/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ add_definitions ( -DIN_MANTID_MATLAB_API -DMATLAB_MEX_FILE=1 )
include_directories ( inc )
include_directories ( ${MATLAB_INCLUDE_DIR} ${MATLAB_EXTERN_SRC} )
add_library ( MatlabAPI ${SRC_FILES} ${INC_FILES})
add_cppcheck( MatlabAPI )
# Set the name of the generated library
set_target_properties ( MatlabAPI PROPERTIES OUTPUT_NAME MantidMatlabAPI )
# Add to the 'Framework' group in VS
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/Framework/Nexus/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ add_definitions ( -DIN_NEXUS_CPP_LIBRARY )

# Add the target for this directory
add_library ( Nexus ${SRC_FILES} ${INC_FILES})
add_cppcheck( Nexus )
# Set the name of the generated library
set_target_properties ( Nexus PROPERTIES OUTPUT_NAME MantidNexus
COMPILE_DEFINITIONS IN_MANTID_NEXUS )
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/Framework/NexusCPP/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ add_definitions ( -DIN_NEXUS_CPP_LIBRARY )

# Add the target for this directory
add_library ( NexusCPP ${SRC_FILES} ${INC_FILES})
add_cppcheck( NexusCPP )
# Set the name of the generated library
set_target_properties ( NexusCPP PROPERTIES OUTPUT_NAME MantidNexusCPP
COMPILE_DEFINITIONS IN_MANTID_NEXUSCPP )
Expand Down
2 changes: 0 additions & 2 deletions Code/Mantid/Framework/PythonAPI/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,9 @@ endforeach ( PYFILE )
###########################################################################

add_library ( PythonAPI ${SRC_FILES} ${INC_FILES} ${BOOST_SRC} ${PYTHON_INSTALL_FILES} )
add_cppcheck( PythonAPI )
if ( UNIX )
set ( DLOPEN_SRC src/dlopen.c )
add_library ( dlopen ${DLOPEN_SRC} )
add_cppcheck( dlopen )
if ( APPLE )
# and in .so on the Mac
# Need to remove OpenMP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ endforeach ( PYFILE )
#############################################################################################

add_library ( PythonAPIModule ${SRC_FILES} ${INC_FILES} ${PYTHON_INSTALL_FILES} )
add_cppcheck( PythonAPIModule )
set_python_properties( PythonAPIModule _api )
set_target_output_directory ( PythonAPIModule ${OUTPUT_DIR} .pyd )

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ endforeach ( PYFILE )
#############################################################################################

add_library ( PythonGeometryModule ${SRC_FILES} ${INC_FILES} ${PYTHON_INSTALL_FILES} )
add_cppcheck( PythonGeometryModule )
set_python_properties( PythonGeometryModule _geometry )
set_target_output_directory ( PythonGeometryModule ${OUTPUT_DIR} .pyd )
# Add the required dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ endforeach ( PYFILE )
#############################################################################################

add_library ( PythonKernelModule ${SRC_FILES} ${BOOST_PYTHON_SRC} ${INC_FILES} ${PYTHON_INSTALL_FILES} )
add_cppcheck( PythonKernelModule )
set_python_properties( PythonKernelModule _kernel )
set_target_output_directory ( PythonKernelModule ${OUTPUT_DIR} .pyd )
# Add the required dependencies
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/Framework/WorkflowAlgorithms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ set ( TEST_PY_FILES test/EQSANSQ2DTest.py test/EQSANSSensitivityCorrectionTest.p
ADD_PRECOMPILED_HEADER( inc/MantidWorkflowAlgorithms/PrecompiledHeader.h MantidWorkflowAlgorithms src/PrecompiledHeader.cpp SRC_FILES INC_FILES )
# Add the target for this directory
add_library ( WorkflowAlgorithms ${SRC_FILES} ${INC_FILES})
add_cppcheck( WorkflowAlgorithms )
# Set the name of the generated library
set_target_properties ( WorkflowAlgorithms PROPERTIES OUTPUT_NAME MantidWorkflowAlgorithms )
# Add to the 'Framework' group in VS
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/MantidPlot/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,6 @@ add_executable ( MantidPlot ${WIN_CONSOLE} MACOSX_BUNDLE ${ALL_SRC} src/main.cpp
${INC_FILES} ${QTIPLOT_C_SRC} ${UI_HDRS}
${RES_FILES} ${MANTID_RC_FILE}
)
add_cppcheck ( MantidPlot )

# Library dependencies
target_link_libraries ( MantidPlot
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/MantidQt/API/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ add_definitions ( -DIN_MANTIDQT_API )
# Use a precompiled header where they are supported
ADD_PRECOMPILED_HEADER( inc/MantidQtAPI/PrecompiledHeader.h MantidQtAPI src/PrecompiledHeader.cpp ALL_SRC INC_FILES )
add_library ( MantidQtAPI ${ALL_SRC} ${INC_FILES} ${UI_HDRS} )
add_cppcheck( MantidQtAPI )

target_link_libraries ( MantidQtAPI ${CORE_MANTIDLIBS} ${QT_LIBRARIES} ${QWT_LIBRARIES} )

Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/MantidQt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ include_directories ( ${CMAKE_CURRENT_BINARY_DIR}/SliceViewer ) # to find the ui

# This creates the target library, just for python bindings
add_library ( mantidqtpython MODULE ${SIP_SRC} )
add_cppcheck( mantidqtpython )

if(WIN32)
# Windows: Python library name needs to end in .pyd for Windows
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/MantidQt/CustomDialogs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ endif(UNITY_BUILD)
# Use a precompiled header where they are supported
ADD_PRECOMPILED_HEADER( inc/MantidQtCustomDialogs/PrecompiledHeader.h MantidQtCustomDialogs src/PrecompiledHeader.cpp ALL_SRC INC_FILES )
add_library ( CustomDialogs ${ALL_SRC} ${INC_FILES} ${UI_HDRS} )
add_cppcheck( CustomDialogs )
# Set the name of the generated library
set_target_properties ( CustomDialogs PROPERTIES OUTPUT_NAME MantidQtCustomDialogs )

Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/MantidQt/CustomInterfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ endif(UNITY_BUILD)
# Use a precompiled header where they are supported
ADD_PRECOMPILED_HEADER( inc/MantidQtCustomInterfaces/PrecompiledHeader.h MantidQtCustomInterfaces src/PrecompiledHeader.cpp ALL_SRC INC_FILES )
add_library ( CustomInterfaces ${ALL_SRC} ${INC_FILES} ${UI_HDRS} )
add_cppcheck( CustomInterfaces )

# Set the name of the generated library
set_target_properties ( CustomInterfaces PROPERTIES OUTPUT_NAME MantidQtCustomInterfaces )
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/MantidQt/DesignerPlugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ if(UNITY_BUILD)
endif(UNITY_BUILD)

add_library ( DesignerPlugins ${SRC_FILES} ${INC_FILES} ${MOCCED_FILES} )
add_cppcheck( DesignerPlugins )

# Change the destination of the target as Qt expects this in a directory called "designer"
SET_TARGET_OUTPUT_DIRECTORY( DesignerPlugins ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/designer )
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/MantidQt/Factory/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ add_definitions ( -DIN_MANTIDQT_FACTORY )

# This creates the target library
add_library ( MantidQtFactory ${ALL_SRC} ${INC_FILES} ${UI_HDRS} )
add_cppcheck( MantidQtFactory )

# ... and links to other required libs
target_link_libraries ( MantidQtFactory MantidQtAPI QtPropertyBrowser MantidQtSliceViewer ${QT_LIBRARIES} ${QWT_LIBRARIES} )
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/MantidQt/MantidWidgets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ add_definitions ( -DIN_MANTIDQT_MANTIDWIDGETS )
# Use a precompiled header where they are supported
ADD_PRECOMPILED_HEADER( inc/MantidQtMantidWidgets/PrecompiledHeader.h MantidQtMantidWidgets src/PrecompiledHeader.cpp ALL_SRC INC_FILES )
add_library ( MantidWidgets ${ALL_SRC} ${INC_FILES} ${UI_HDRS} )
add_cppcheck( MantidWidgets )

target_link_libraries ( MantidWidgets MantidQtAPI QtPropertyBrowser ${QT_LIBRARIES} ${QWT_LIBRARIES} )

Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/MantidQt/SliceViewer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ add_definitions ( -DIN_MANTIDQT_SLICEVIEWER )

# This creates the target library
add_library ( MantidQtSliceViewer ${ALL_SRC} ${INC_FILES} ${UI_HDRS} )
add_cppcheck( MantidQtSliceViewer )

# ... and links to other required libs
target_link_libraries ( MantidQtSliceViewer MantidQtAPI QtPropertyBrowser ${QT_LIBRARIES} ${QWT_LIBRARIES} )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ qt4_wrap_cpp( MOCCED_FILES ${HDR_FILES} )

project( MantidParaViewQtWidgets )
add_library( MantidParaViewQtWidgets ${SRC_FILES} ${MOCCED_FILES} ${INC_FILES} )
add_cppcheck( MantidParaViewQtWidgets )
# Add to the 'Vates' group in VS
set_property( TARGET MantidParaViewQtWidgets PROPERTY FOLDER "MantidVates" )
target_link_libraries( MantidParaViewQtWidgets ${QT_LIBRARIES}
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/Vates/VatesAPI/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ add_definitions( -DIN_MANTID_VATESAPI )
ADD_PRECOMPILED_HEADER( inc/MantidVatesAPI/PrecompiledHeader.h MantidVatesAPI src/PrecompiledHeader.cpp SRC_FILES INC_FILES )
# Add the target for this directory
add_library( VatesAPI ${SRC_FILES} ${INC_FILES} )
add_cppcheck( VatesAPI )
# Set the name of the generated library
set_target_properties( VatesAPI PROPERTIES OUTPUT_NAME MantidVatesAPI )
# Add to the 'Framework' group in VS
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/Vates/VatesSimpleGui/QtWidgets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ ${RES_FILES}
add_definitions( -DIN_MANTID_VATES_SIMPLEGUI_QTWIDGETS )
# Add the target for this directory
add_library( VatesSimpleGuiQtWidgets ${ALL_FILES} )
add_cppcheck( VatesSimpleGuiQtWidgets )
# Set the name of the generated library
set_target_properties( VatesSimpleGuiQtWidgets PROPERTIES OUTPUT_NAME MantidVatesSimpleGuiQtWidgets )
# Add to the 'VatesSimpleGui' group in VS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ ${RES_FILES}
add_definitions( -DIN_MANTID_VATES_SIMPLEGUI_VIEWWIDGETS )
# Add the target for this directory
add_library( VatesSimpleGuiViewWidgets ${ALL_FILES} )
add_cppcheck( VatesSimpleGuiViewWidgets )
# Set the name of the generated library
set_target_properties( VatesSimpleGuiViewWidgets PROPERTIES OUTPUT_NAME MantidVatesSimpleGuiViewWidgets )
# Add to the 'VatesSimpleGui' group in VS
Expand Down

0 comments on commit 7baf7af

Please sign in to comment.