cmake_minimum_required(VERSION 3.9) project(SchemeEditor) set(CMAKE_CXX_STANDARD 17) set(CMAKE_INCLUDE_CURRENT_DIR ON) find_package(Qt5 CONFIG REQUIRED COMPONENTS Core Gui Widgets) set(CMAKE_AUTOMOC TRUE) set(CMAKE_AUTORCC TRUE) set(CMAKE_AUTOUIC TRUE) add_executable(SchemeEditor mainwindow.cpp comdel/display/component_display.cpp comdel/display/schema_display.cpp comdel/display/library_display.cpp comdel/domain/value.cpp comdel/domain/schema.cpp comdel/domain/component.cpp comdel/domain/connection_instance.cpp comdel/domain/rule.cpp comdel/domain/attribute.cpp comdel/domain/bus.cpp comdel/domain/pin.cpp comdel/domain/display.cpp comdel/domain/library.cpp comdel/domain/function_signature.cpp comdel/domain/address_space.cpp comdel/domain/instance_attribute.cpp comdel/domain/connection.cpp comdel/domain/instance.cpp comdel/domain/schema_creator.cpp comdel/parser/comdel_parser.cpp comdel/parser/token.cpp comdel/parser/source_error.cpp comdel/parser/parse_context.cpp comdel/parser/tokens_type.cpp comdel/parser/ast_nodes.cpp comdel/parser/parser_util.cpp comdel/parser/comdel_lexer.cpp main.cpp mainwindow.ui comdel/domain/comdel_validator.cpp comdel/domain/comdel_validator.h comdel/display/dialog/attribute_dialog.cpp comdel/display/dialog/attribute_dialog.h comdel/display/dialog/name_dialog.cpp comdel/display/dialog/name_dialog.h comdel/domain/comdel_generator.cpp comdel/domain/comdel_generator.h comdel/display/library_list.cpp comdel/display/library_list.h application.cpp application.h comdel/display/dialog/single_automatic_dialog.cpp comdel/display/dialog/single_automatic_dialog.h comdel/parser/color.h comdel/display/dialog/generic_dialog.cpp comdel/display/dialog/generic_dialog.h comdel/display/dialog/warning_dialog.cpp comdel/display/dialog/warning_dialog.h comdel/display/dialog/error_dialog.cpp comdel/display/dialog/error_dialog.h comdel/display/dialog/memory_dialog.cpp comdel/display/dialog/memory_dialog.h comdel/display/dialog/success_dialog.cpp comdel/display/dialog/success_dialog.h message_source.cpp message_source.h) target_link_libraries(SchemeEditor Qt5::Core Qt5::Gui Qt5::Widgets)