ceshi/CMakeLists.txt

266 lines
12 KiB
CMake

cmake_minimum_required(VERSION 3.5)
project(CAS VERSION 0.1 LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt5 COMPONENTS Core Gui Widgets Sql OpenGL REQUIRED)
set(QT_USE_QTMAIN TRUE)
set(PROJECT_SOURCES
main.cpp
#------------------------------Services--------------------
public/services/UiFrameService.h
public/services/ProjectManagerService.h
public/services/VisualWidgetService.h
public/services/NephogramService.h
public/services/PreProcessingService.h
public/services/PhysicalFieldService.h
#------------------------------struct--------------------
public/struct/Mesh.h
#------------------------------ServiceRegistry--------------------
utils/ServiceRegistry.h
#------------------------------CA_UiFrame--------------------
plugins/CA_UiFrame/UiFrame.h
plugins/CA_UiFrame/UiFrame.cpp
plugins/CA_UiFrame/TitleWidget.h
plugins/CA_UiFrame/TitleWidget.cpp
plugins/CA_UiFrame/SystemButtonBar.h
plugins/CA_UiFrame/SystemButtonBar.cpp
plugins/CA_UiFrame/Ribbon.h
plugins/CA_UiFrame/Ribbon.cpp
plugins/CA_UiFrame/RibbonButtonGroup.h
plugins/CA_UiFrame/RibbonButtonGroup.cpp
plugins/CA_UiFrame/RibbonButtonGroup.ui
plugins/CA_UiFrame/RibbonTabContent.h
plugins/CA_UiFrame/RibbonTabContent.cpp
#plugins/CA_UiFrame/RibbonTabContent.ui
#------------------------------CA_ProjectManager--------------------
plugins/CA_ProjectManager/ProjectManagerWidget.h
plugins/CA_ProjectManager/ProjectManagerWidget.cpp
plugins/CA_ProjectManager/SettingWidget.h
plugins/CA_ProjectManager/SettingWidget.cpp
plugins/CA_ProjectManager/ProjectManager.h
plugins/CA_ProjectManager/ProjectManager.cpp
#------------------------------CA_GlobalDefinition--------------------
# plugins/CA_GlobalDefinition/ParameterWidget.h
# plugins/CA_GlobalDefinition/ParameterWidget.cpp
# plugins/CA_GlobalDefinition/ParameterWidget.ui
# plugins/CA_GlobalDefinition/FunctionWidget.h
# plugins/CA_GlobalDefinition/FunctionWidget.cpp
# plugins/CA_GlobalDefinition/FunctionWidget.ui
# plugins/CA_GlobalDefinition/GlobalDefinition.h
# plugins/CA_GlobalDefinition/GlobalDefinition.cpp
#------------------------------CA_PreProcessing--------------------
plugins/CA_PreProcessing/RectangleSettingWidget.h
plugins/CA_PreProcessing/RectangleSettingWidget.cpp
#plugins/CA_PreProcessing/RectangleSettingWidget.ui
plugins/CA_PreProcessing/CuboidSettingWidget.h
plugins/CA_PreProcessing/CuboidSettingWidget.cpp
#plugins/CA_PreProcessing/CuboidSettingWidget.ui
plugins/CA_PreProcessing/BuildGridSettingWidget.h
plugins/CA_PreProcessing/BuildGridSettingWidget.cpp
#plugins/CA_PreProcessing/BuildGridSettingWidget.ui
plugins/CA_PreProcessing/ImportGridSettingWidget.h
plugins/CA_PreProcessing/ImportGridSettingWidget.cpp
#plugins/CA_PreProcessing/ImportGridSettingWidget.ui
plugins/CA_PreProcessing/PreProcessing.h
plugins/CA_PreProcessing/PreProcessing.cpp
plugins/CA_PreProcessing/processor/gen2DGrid.cpp
plugins/CA_PreProcessing/processor/gen2DGrid.h
plugins/CA_PreProcessing/processor/gen2DModel.cpp
plugins/CA_PreProcessing/processor/gen2DModel.h
plugins/CA_PreProcessing/processor/gen3DGrid.cpp
plugins/CA_PreProcessing/processor/gen3DGrid.h
plugins/CA_PreProcessing/processor/gen3DModel.cpp
plugins/CA_PreProcessing/processor/gen3DModel.h
plugins/CA_PreProcessing/processor/readFlac.cpp
plugins/CA_PreProcessing/processor/readFlac.h
plugins/CA_PreProcessing/processor/readGrid.cpp
plugins/CA_PreProcessing/processor/readGrid.h
plugins/CA_PreProcessing/processor/readJson.cpp
plugins/CA_PreProcessing/processor/readJson.h
plugins/CA_PreProcessing/processor/readNas.cpp
plugins/CA_PreProcessing/processor/readNas.h
plugins/CA_PreProcessing/processor/readSTL.cpp
plugins/CA_PreProcessing/processor/readSTL.h
plugins/CA_PreProcessing/processor/readVtk.cpp
plugins/CA_PreProcessing/processor/readVtk.h
plugins/CA_PreProcessing/processor/readVtkWireframe.cpp
plugins/CA_PreProcessing/processor/readVtkWireframe.h
plugins/CA_PreProcessing/processor/readVtu.cpp
plugins/CA_PreProcessing/processor/readVtu.h
plugins/CA_PreProcessing/processor/readVtuWireframe.cpp
plugins/CA_PreProcessing/processor/readVtuWireframe.h
plugins/CA_PreProcessing/processor/structFromJson.cpp
plugins/CA_PreProcessing/processor/structFromJson.h
plugins/CA_PreProcessing/processor/nlohmann/json.hpp
plugins/CA_PreProcessing/processor/nlohmann/json_fwd.hpp
#------------------------------CA_MaterialSetting--------------------
plugins/CA_MaterialSetting/StrengthSettingWidget.h
plugins/CA_MaterialSetting/StrengthSettingWidget.cpp
#plugins/CA_MaterialSetting/StrengthSettingWidget.ui
plugins/CA_MaterialSetting/PhysicalParametersSettingWidget.h
plugins/CA_MaterialSetting/PhysicalParametersSettingWidget.cpp
plugins/CA_MaterialSetting/PhysicalParametersSettingWidget.ui
plugins/CA_MaterialSetting/HeterogeneousSettingWidget.h
plugins/CA_MaterialSetting/HeterogeneousSettingWidget.cpp
#plugins/CA_MaterialSetting/HeterogeneousSettingWidget.ui
plugins/CA_MaterialSetting/ConstitutiveModelSettingWidget.h
plugins/CA_MaterialSetting/ConstitutiveModelSettingWidget.cpp
plugins/CA_MaterialSetting/ConstitutiveModelSettingWidget.ui
plugins/CA_MaterialSetting/MaterialManager.h
plugins/CA_MaterialSetting/MaterialManager.cpp
plugins/CA_MaterialSetting/MaterialManagerWidget.h
plugins/CA_MaterialSetting/MaterialManagerWidget.cpp
#plugins/CA_MaterialSetting/MaterialManagerWidget.ui
plugins/CA_MaterialSetting/ViscoplasticSettingWidget.h
plugins/CA_MaterialSetting/ViscoplasticSettingWidget.cpp
#plugins/CA_MaterialSetting/ViscoplasticSettingWidget.ui
#------------------------------CA_PhyicalField--------------------
plugins/CA_PhysicalField/AnalysisTypeSettingWidget.h
plugins/CA_PhysicalField/AnalysisTypeSettingWidget.cpp
#plugins/CA_PhysicalField/AnalysisTypeSettingWidget.ui
plugins/CA_PhysicalField/StaticProblemsSettingWidget.h
plugins/CA_PhysicalField/StaticProblemsSettingWidget.cpp
#plugins/CA_PhysicalField/StaticProblemsSettingWidget.ui
plugins/CA_PhysicalField/ExcavateSettingWidget.h
plugins/CA_PhysicalField/ExcavateSettingWidget.cpp
#plugins/CA_PhysicalField/ExcavateSettingWidget.ui
plugins/CA_PhysicalField/BoundarySettingWidget.h
plugins/CA_PhysicalField/BoundarySettingWidget.cpp
#plugins/CA_PhysicalField/BoundarySettingWidget.ui
plugins/CA_PhysicalField/PhysicalField.h
plugins/CA_PhysicalField/PhysicalField.cpp
plugins/CA_PhysicalField/BoundarySetting.h
plugins/CA_PhysicalField/BoundarySetting.cpp
plugins/CA_PhysicalField/PropPickerInteractionStyle.h
plugins/CA_PhysicalField/PropPickerInteractionStyle.cpp
plugins/CA_PhysicalField/DisplacementLimitSettingWidget.h
plugins/CA_PhysicalField/DisplacementLimitSettingWidget.cpp
#plugins/CA_PhysicalField/DisplacementLimitSettingWidget.ui
plugins/CA_PhysicalField/DistributedLoadSettingWidget.h
plugins/CA_PhysicalField/DistributedLoadSettingWidget.cpp
#plugins/CA_PhysicalField/DistributedLoadSettingWidget.ui
#------------------------------CA_Slover--------------------
plugins/CA_Slover/CalculateSettingWidget.h
plugins/CA_Slover/CalculateSettingWidget.cpp
#plugins/CA_Slover/CalculateSettingWidget.ui
plugins/CA_Slover/OutputSettingWidget.h
plugins/CA_Slover/OutputSettingWidget.cpp
#plugins/CA_Slover/OutputSettingWidget.ui
plugins/CA_Slover/Slover.cpp
plugins/CA_Slover/Slover.h
#------------------------------CA_PostProcessing--------------------
plugins/CA_PostProcessing/NephogramSettingWidget.h
plugins/CA_PostProcessing/NephogramSettingWidget.cpp
#plugins/CA_PostProcessing/NephogramSettingWidget.ui
plugins/CA_PostProcessing/GraphSettingWidget.h
plugins/CA_PostProcessing/GraphSettingWidget.cpp
#plugins/CA_PostProcessing/GraphSettingWidget.ui
plugins/CA_PostProcessing/SectionSettingWidget.h
plugins/CA_PostProcessing/SectionSettingWidget.cpp
#plugins/CA_PostProcessing/SectionSettingWidget.ui
plugins/CA_PostProcessing/BisectSettingWidget.h
plugins/CA_PostProcessing/BisectSettingWidget.cpp
#plugins/CA_PostProcessing/BisectSettingWidget.ui
plugins/CA_PostProcessing/ExportSettingWidget.h
plugins/CA_PostProcessing/ExportSettingWidget.cpp
#plugins/CA_PostProcessing/ExportSettingWidget.ui
plugins/CA_PostProcessing/PostProcessing.h
plugins/CA_PostProcessing/PostProcessing.cpp
plugins/CA_PostProcessing/VTKScalar.h
plugins/CA_PostProcessing/VTKScalar.cpp
plugins/CA_PostProcessing/vtkTecEconReader.h
plugins/CA_PostProcessing/vtkTecEconReader.cpp
plugins/CA_PostProcessing/VTKNodeScalar.h
plugins/CA_PostProcessing/VTKNodeScalar.cpp
plugins/CA_PostProcessing/processor/postCubeAxes.cpp
plugins/CA_PostProcessing/processor/postCubeAxes.h
plugins/CA_PostProcessing/processor/postFilterClip.cpp
plugins/CA_PostProcessing/processor/postFilterClip.h
plugins/CA_PostProcessing/processor/postFilterContour.cpp
plugins/CA_PostProcessing/processor/postFilterContour.h
plugins/CA_PostProcessing/processor/postFilterGlyph.cpp
plugins/CA_PostProcessing/processor/postFilterGlyph.h
plugins/CA_PostProcessing/processor/postFilterSlice.cpp
plugins/CA_PostProcessing/processor/postFilterSlice.h
plugins/CA_PostProcessing/processor/postFilterThreshold.cpp
plugins/CA_PostProcessing/processor/postFilterThreshold.h
plugins/CA_PostProcessing/processor/postShowEcon.cpp
plugins/CA_PostProcessing/processor/postShowEcon.h
plugins/CA_PostProcessing/processor/postShowVtu.cpp
plugins/CA_PostProcessing/processor/postShowVtu.h
plugins/CA_PostProcessing/processor/readCurveData.cpp
plugins/CA_PostProcessing/processor/readCurveData.h
# plugins/CA_PostProcessing/processor/vtkTecEconReader.cpp
# plugins/CA_PostProcessing/processor/vtkTecEconReader.h
#------------------------------CA_Visualization--------------------
plugins/CA_Visualization/VisualWidget.h
plugins/CA_Visualization/VisualWidget.cpp
#plugins/CA_Visualization/VisualWidget.ui
plugins/CA_Visualization/Visualization.h
plugins/CA_Visualization/Visualization.cpp
#------------------------------CA_Output--------------------
plugins/CA_Output/OutputWidget.h
plugins/CA_Output/OutputWidget.cpp
#plugins/CA_Output/OutputWidget.ui
plugins/CA_Output/Output.h
plugins/CA_Output/Output.cpp
#------------------------------Resources--------------------
res.qrc
)
set(INC_DIR "libs/Qt-AdvancedDock/include")
include_directories(${INC_DIR})
link_directories(${LINK_DIR})
INCLUDE_DIRECTORIES(${VTK_USE_FILE})
INCLUDE_DIRECTORIES(.)
find_package(VTK REQUIRED)
if(VTK_FOUND)
message(STATUS "found VTK_DIR")
else(VTK_FOUND)
message(FATAL_ERROR "VTK not found. Please set VTK_DIR")
endif(VTK_FOUND)
add_executable(CAS
${PROJECT_SOURCES}
)
#target_link_libraries(CAS PRIVATE Qt${QT_VERSION_MAJOR}::Widgets)
#----------------------第三方库--------------------
target_link_libraries(CAS PRIVATE qt5advanceddocking)
# 链接VTK库
target_link_libraries(CAS PRIVATE ${VTK_LIBRARIES} Qt5::Core Qt5::Gui Qt5::Widgets Qt5::OpenGL)
#target_link_libraries(CAS PRIVATE FramelessHelper)