代码拉取完成,页面将自动刷新
同步操作将从 liushuai/ScopeGUI 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
cmake_minimum_required(VERSION 3.1)
project(ScopeGUI C CXX)
# OpenGL
find_package(OpenGL REQUIRED)
link_libraries(${OPENGL_LIBRARIES})
# GLFW
option(GLFW_BUILD_EXAMPLES "Build the GLFW example programs" OFF)
option(GLFW_BUILD_TESTS "Build the GLFW test programs" OFF)
option(GLFW_BUILD_DOCS "Build the GLFW documentation" OFF)
option(GLFW_INSTALL "Generate installation target" OFF)
option(GLFW_DOCUMENT_INTERNALS "Include internals in documentation" OFF)
add_subdirectory(third_party/glfw)
link_libraries(glfw)
# ImGui
set(IMGUI_DIR third_party/imgui)
set(GL_DIR ${IMGUI_DIR}/examples/libs/gl3w)
add_library(imgui
${IMGUI_DIR}/examples/imgui_impl_glfw.cpp
${IMGUI_DIR}/examples/imgui_impl_opengl2.cpp
${IMGUI_DIR}/imgui.cpp
${IMGUI_DIR}/imgui_draw.cpp
${IMGUI_DIR}/imgui_demo.cpp
${IMGUI_DIR}/imgui_widgets.cpp
${GL_DIR}/GL/gl3w.c)
target_include_directories(imgui PUBLIC
${IMGUI_DIR} ${GL_DIR} ${IMGUI_DIR}/examples)
link_libraries(imgui)
# SmartSerial
add_subdirectory(modules/SmartSerial)
link_libraries(smartserial)
# log
include_directories(modules/log)
# asio
add_definitions(-DASIO_STANDALONE)
include_directories(third_party/asio/asio/include)
# common
set(CMAKE_CXX_STANDARD 11)
add_compile_options(-Wall)
if(MINGW)
link_libraries(ws2_32)
endif()
if(CMAKE_BUILD_TYPE MATCHES "Release")
if(MINGW)
set(CMAKE_EXE_LINKER_FLAGS "-static -s")
endif()
set(BUILD_AS_APP WIN32 MACOSX_BUNDLE)
endif()
# ScopeCore
add_subdirectory(modules/ScopeCore)
link_libraries(ScopeCoreGUI)
# App
add_subdirectory(App)
link_libraries(App)
add_executable(${PROJECT_NAME} ${BUILD_AS_APP} main.cpp)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。