加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
chengyangkj 提交于 2024-01-30 14:03 . fix map open bug
cmake_minimum_required(VERSION 3.5)
project(ros_qt5_gui_app VERSION 0.0.1)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake;${CMAKE_MODULE_PATH}")
get_filename_component(PROJECT_ROOT "${CMAKE_CURRENT_LIST_DIR}" ABSOLUTE)
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=return-type")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=return-type")
endif()
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_C_STANDARD 99)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_INSTALL_PREFIX ./install)
# options
option(BUILD_WITH_CHANNEL_AUTO ON)
option(BUILD_WITH_CHANNEL_ROS1 OFF)
option(BUILD_WITH_CHANNEL_ROS2 OFF)
option(BUILD_WITH_CHANNEL_PROTOBUF OFF)
option(BUILD_WITH_TEST OFF)
set(BUILD_WITH_CHANNEL_AUTO ON)
enable_testing()
# 依赖
set(QT_VERSION_MAJOR 5)
set(VERSION_SHORT "0.0.1")
set(BUILD_STATIC TRUE)
set(BUILD_EXAMPLES OFF)
add_subdirectory(3rdpart/dockWidget)
add_subdirectory(3rdpart/JsonStruct)
add_subdirectory(3rdpart/yaml-cpp)
# modules
add_subdirectory(common)
add_subdirectory(basic)
add_subdirectory(channel)
add_subdirectory(plugin)
add_subdirectory(mainwindow)
add_subdirectory(core)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化