simulator work
This commit is contained in:
parent
27b8de1bc2
commit
9cc0c10e35
584 changed files with 29988 additions and 0 deletions
37
ass2/simulator/CMakeLists.txt
Normal file
37
ass2/simulator/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
cmake_minimum_required(VERSION 3.19)
|
||||
project(simulator LANGUAGES CXX)
|
||||
|
||||
find_package(Qt6 6.5 REQUIRED COMPONENTS Core Widgets)
|
||||
|
||||
qt_standard_project_setup()
|
||||
|
||||
qt_add_executable(simulator
|
||||
WIN32 MACOSX_BUNDLE
|
||||
main.cpp
|
||||
mainwindow.cpp
|
||||
mainwindow.h
|
||||
mainwindow.ui
|
||||
machine.h machine.cpp
|
||||
device.h device.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(simulator
|
||||
PRIVATE
|
||||
Qt::Core
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
install(TARGETS simulator
|
||||
BUNDLE DESTINATION .
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
)
|
||||
|
||||
qt_generate_deploy_app_script(
|
||||
TARGET simulator
|
||||
OUTPUT_SCRIPT deploy_script
|
||||
NO_UNSUPPORTED_PLATFORM_ERROR
|
||||
)
|
||||
install(SCRIPT ${deploy_script})
|
||||
Loading…
Add table
Add a link
Reference in a new issue