You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.2 KiB

cmake_minimum_required(VERSION 3.19)
project(AgentSimulator LANGUAGES CXX)
set(CMAKE_AUTORCC ON) # 启用自动处理.qrc文件 不加会不现实qrc内容
find_package(Qt6 6.5 REQUIRED COMPONENTS Core Widgets Charts)
include_directories(./lib/Eigen)
include_directories(./lib/Agent)
include_directories(./lib/UChart)
qt_standard_project_setup()
qt_add_executable(AgentSimulator
WIN32 MACOSX_BUNDLE
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
lib/UChart/uchart.h lib/UChart/callout.h
lib/Agent/enviroment.h lib/Agent/agent.h
lib/UChart/uchart.cpp lib/UChart/callout.cpp
lib/Agent/enviroment.cpp lib/Agent/agent.cpp
icons.qrc
lib/Agent/common.h lib/Agent/common.cpp
UIcommon.cpp
UIcommon.h
)
target_link_libraries(AgentSimulator
PRIVATE
Qt::Core
Qt::Widgets
Qt::Charts
)
include(GNUInstallDirs)
install(TARGETS AgentSimulator
BUNDLE DESTINATION .
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
qt_generate_deploy_app_script(
TARGET AgentSimulator
OUTPUT_SCRIPT deploy_script
NO_UNSUPPORTED_PLATFORM_ERROR
)
install(SCRIPT ${deploy_script})