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/connectioninstance.cpp comdel/domain/rule.cpp comdel/domain/wireinstance.cpp comdel/domain/attribute.cpp comdel/domain/bus.cpp comdel/domain/pin.cpp comdel/domain/display.cpp comdel/domain/library.cpp comdel/domain/functionsignature.cpp comdel/domain/addressspace.cpp comdel/domain/instanceattribute.cpp comdel/domain/connection.cpp comdel/domain/instance.cpp comdel/domain/schemacreator.cpp comdel/parser/comdelparser.cpp comdel/parser/token.cpp comdel/parser/parser_util.cpp comdel/parser/sourceerror.cpp comdel/parser/parsecontext.cpp comdel/parser/tokenstype.cpp comdel/parser/astnode.cpp comdel/parser/parserutil.cpp comdel/parser/comdellexer.cpp main.cpp mainwindow.ui ) target_link_libraries(SchemeEditor Qt5::Core Qt5::Gui Qt5::Widgets)