feat:完成设置界面和主界面的参数配置
This commit is contained in:
@@ -24,22 +24,20 @@ find_package(Eigen3 REQUIRED)
|
||||
qt_standard_project_setup()
|
||||
|
||||
file(
|
||||
GLOB_RECURSE MODERN_QT_SOURCES
|
||||
GLOB_RECURSE creeper_QT_SOURCES
|
||||
CONFIGURE_DEPENDS
|
||||
"modern-qt/*.cc"
|
||||
"creeper-qt/*.cc"
|
||||
)
|
||||
set(MODERN_QT_HEADERS
|
||||
modern-qt/widget/select.hh
|
||||
modern-qt/widget/select.impl.hh
|
||||
modern-qt/widget/sliders.hh
|
||||
set(creeper_QT_HEADERS
|
||||
creeper-qt/widget/sliders.hh
|
||||
)
|
||||
add_library(modern-qt SHARED ${MODERN_QT_SOURCES} ${MODERN_QT_HEADERS})
|
||||
target_include_directories(modern-qt PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_link_libraries(modern-qt
|
||||
add_library(creeper-qt SHARED ${creeper_QT_SOURCES} ${creeper_QT_HEADERS})
|
||||
target_include_directories(creeper-qt PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_link_libraries(creeper-qt
|
||||
PUBLIC
|
||||
${QT_VERSION}::Widgets
|
||||
${QT_VERSION}::Network
|
||||
Eigen3::Eigen
|
||||
${QT_VERSION}::Widgets
|
||||
${QT_VERSION}::Network
|
||||
Eigen3::Eigen
|
||||
)
|
||||
|
||||
file(
|
||||
@@ -52,9 +50,9 @@ add_library(qcustomplot SHARED ${QCUSTOMPLOT_SOURCES})
|
||||
target_include_directories(qcustomplot PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_link_libraries(qcustomplot
|
||||
PUBLIC
|
||||
${QT_VERSION}::Core
|
||||
${QT_VERSION}::Gui
|
||||
${QT_VERSION}::PrintSupport
|
||||
${QT_VERSION}::Core
|
||||
${QT_VERSION}::Gui
|
||||
${QT_VERSION}::PrintSupport
|
||||
)
|
||||
|
||||
file(
|
||||
@@ -68,6 +66,12 @@ file(
|
||||
"dlog/*.cc"
|
||||
)
|
||||
|
||||
file(
|
||||
GLOB_RECURSE BASE_SOURCES
|
||||
CONFIGURE_DEPENDS
|
||||
"base/*.cc"
|
||||
)
|
||||
|
||||
set(FFMSEP_SOURCES
|
||||
components/ffmsep/cpdecoder.cc
|
||||
components/ffmsep/cpstream_core.cc
|
||||
@@ -81,6 +85,7 @@ set(FFMSEP_HEADERS
|
||||
components/ffmsep/tactile/tacdec.hh
|
||||
)
|
||||
set(FFMSEP_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/components/ffmsep")
|
||||
set(BASE_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/base")
|
||||
|
||||
set(TOUCHSENSOR_HEADERS
|
||||
component.hh
|
||||
@@ -88,6 +93,7 @@ set(TOUCHSENSOR_HEADERS
|
||||
components/charts/heatmap.impl.hh
|
||||
dlog/dlog.hh
|
||||
${FFMSEP_HEADERS}
|
||||
components/setting.cc
|
||||
)
|
||||
|
||||
qt6_add_resources(APP_RESOURCES resources.qrc)
|
||||
@@ -96,23 +102,25 @@ add_executable(${PROJECT_NAME}
|
||||
${COMPONENT_SOURCES}
|
||||
${UTILITY_SOURCES}
|
||||
${TOUCHSENSOR_HEADERS}
|
||||
${BASE_SOURCES}
|
||||
main.cc
|
||||
)
|
||||
target_sources(${PROJECT_NAME} PRIVATE ${APP_RESOURCES})
|
||||
target_include_directories(${PROJECT_NAME}
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${FFMSEP_INCLUDE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${FFMSEP_INCLUDE_DIR}
|
||||
${BASE_INCLUDE_DIR}
|
||||
)
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
PRIVATE
|
||||
${QT_VERSION}::Widgets
|
||||
${QT_VERSION}::Network
|
||||
modern-qt
|
||||
qcustomplot
|
||||
serial
|
||||
setupapi
|
||||
spdlog
|
||||
${QT_VERSION}::Widgets
|
||||
${QT_VERSION}::Network
|
||||
creeper-qt
|
||||
qcustomplot
|
||||
serial
|
||||
setupapi
|
||||
spdlog
|
||||
)
|
||||
|
||||
if(BUILD_EXAMPLE)
|
||||
@@ -122,8 +130,8 @@ if(BUILD_EXAMPLE)
|
||||
)
|
||||
target_include_directories(cpstream_demo
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${FFMSEP_INCLUDE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${FFMSEP_INCLUDE_DIR}
|
||||
)
|
||||
target_link_libraries(cpstream_demo PRIVATE serial)
|
||||
target_link_libraries(cpstream_demo PRIVATE setupapi)
|
||||
|
||||
Reference in New Issue
Block a user