Cheetah Software Study Notes 2----the configuration pyqt

Posted hetaoxiaoming

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Cheetah Software Study Notes 2----the configuration pyqt相关的知识,希望对你有一定的参考价值。

`

cmake_minimum_required(VERSION 3.5)
project(sim)

#set(CMAKE_PREFIX_PATH ~/Qt/5.10.0/gcc_64)
set(CMAKE_PREFIX_PATH ~/Qt5.12.5/5.12.5/gcc_64)
SET(CMAKE_INCLUDE_CURRENT_DIR ON)

# Instruct CMake to run moc automatically when needed
set(CMAKE_AUTOMOC ON)
# Create code from a list of Qt designer ui files
set(CMAKE_AUTOUIC ON)

set(Qt5Core_DIR ~/Qt5.12.5/5.12.5/gcc_64/lib/cmake/Qt5Core)
set(Qt5Widgets_DIR ~/Qt5.12.5/5.12.5/gcc_64/lib/cmake/Qt5Widgets)
set(Qt5Gamepad_DIR ~/Qt5.12.5/5.12.5/gcc_64/lib/cmake/Qt5Gamepad)

find_package(Qt5Core CONFIG REQUIRED)
find_package(Qt5Widgets CONFIG REQUIRED)
get_target_property(QtCore_location Qt5::Core LOCATION)
message(STATUS ${QtCore_location})
find_package(Qt5Gui CONFIG REQUIRED)

set(QOBJECT_HEADERS
        include/Graphics3D.h
        include/GameController.h
        include/SimControlPanel.h)
#        include/main_window.h
#        include/gamepad_monitor.h
#        include/spi_debug.h)

QT5_WRAP_CPP(tst_hdr_moc ${QOBJECT_HEADERS})



include_directories("include/")
include_directories("../common/include/")
include_directories("../lcm-types/cpp")
include_directories("/usr/local/include/lcm/")   # lcm includes
include_directories("../third-party/ParamHandler")
include_directories(${CMAKE_BINARY_DIR})
file(GLOB sources "src/*.cpp")

find_package(Qt5Core COMPONENTS QtGamepad REQUIRED)
find_package(Qt5Gamepad REQUIRED)

find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR})

add_executable(sim ${sources} ${tst_hdr_moc})
target_link_libraries(sim biomimetics pthread lcm rt inih dynacore_param_handler 
    Qt5::Widgets Qt5::Core Qt5::Gui Qt5::Gamepad ${QT_LIBRARIES} ${OPENGL_LIBRARIES} glut)

`
Cheetah-Software/sim/CMakeLists.txt
reference liaoqiayuan github

以上是关于Cheetah Software Study Notes 2----the configuration pyqt的主要内容,如果未能解决你的问题,请参考以下文章

Cheetah curve:STARK友好的椭圆曲线

我们如何在 Cheetah 中预编译基本模板,以便 #include、#extends 和 #import 在 Weby 中正常工作

CherryPy 与 Cheetah 作为插件 + 工具 - 空白页

在另一个项目中添加 Slow Cheetah 转换的配置文件作为参考

iPhone Cheetah 3D OpenGL ES 顶点缓冲对象 (VBO) 示例

Eclipse安装Spring提示No software site found at jar