cmake-format: Allow dangling parenthesis

This commit is contained in:
Magne Sjaastad
2021-09-01 08:13:16 +02:00
committed by GitHub
parent 503d946bc1
commit 638f926429
108 changed files with 976 additions and 503 deletions

View File

@@ -19,7 +19,8 @@ set(MOC_HEADER_FILES cafMessagePanel.h)
find_package(
Qt5
COMPONENTS
REQUIRED Core Gui Widgets OpenGL)
REQUIRED Core Gui Widgets OpenGL
)
set(QT_LIBRARIES Qt5::Core Qt5::Gui Qt5::Widgets Qt5::OpenGL)
qt5_wrap_cpp(MOC_SOURCE_FILES ${MOC_HEADER_FILES})
@@ -50,7 +51,8 @@ add_library(
cvfStructGridScalarDataAccess.h
cafVecIjk.cpp
cafVecIjk.h
${MOC_SOURCE_FILES})
${MOC_SOURCE_FILES}
)
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
@@ -62,11 +64,13 @@ target_link_libraries(
LibRender
LibGuiQt
cafPdmCore
${QT_LIBRARIES})
${QT_LIBRARIES}
)
if(MSVC)
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS
"/W4 /wd4100 /wd4127")
set_target_properties(
${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/W4 /wd4100 /wd4127"
)
endif()
source_group("" FILES ${PROJECT_FILES})