-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dac: initial revision of the DAC plugin with buffer(CSV) and DDS mode.
Signed-off-by: AlexandraTrifan <[email protected]>
- Loading branch information
1 parent
a4aff37
commit e864306
Showing
46 changed files
with
5,625 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include/dac/scopy-dac_export.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
cmake_minimum_required(VERSION 3.9) | ||
|
||
set(SCOPY_MODULE dac) | ||
|
||
message(STATUS "building plugin: " ${SCOPY_MODULE}) | ||
|
||
project(scopy-${SCOPY_MODULE} VERSION 0.1 LANGUAGES CXX) | ||
|
||
include(GenerateExportHeader) | ||
|
||
# TODO: split stylesheet/resources and add here TODO: export header files correctly | ||
|
||
set(CMAKE_CXX_STANDARD 20) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
set(CMAKE_AUTOUIC_SEARCH_PATHS ${CMAKE_CURRENT_SOURCE_DIR}/ui) | ||
set(CMAKE_AUTOUIC ON) | ||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
|
||
set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
|
||
set(CMAKE_CXX_VISIBILITY_PRESET hidden) | ||
set(CMAKE_VISIBILITY_INLINES_HIDDEN TRUE) | ||
|
||
file(GLOB SRC_LIST src/*.cpp src/*.cc) | ||
file(GLOB HEADER_LIST include/${SCOPY_MODULE}/*.h include/${SCOPY_MODULE}/*.hpp) | ||
file(GLOB UI_LIST ui/*.ui) | ||
|
||
set(ENABLE_TESTING ON) | ||
if(ENABLE_TESTING) | ||
add_subdirectory(test) | ||
endif() | ||
|
||
set(PROJECT_SOURCES ${SRC_LIST} ${HEADER_LIST} ${UI_LIST}) | ||
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS REQUIRED Widgets Core) | ||
|
||
if(NOT "${SCOPY_PLUGIN_BUILD_PATH}" STREQUAL "") | ||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${SCOPY_PLUGIN_BUILD_PATH}) | ||
endif() | ||
|
||
qt_add_resources(PROJECT_RESOURCES res/resources.qrc) | ||
add_library(${PROJECT_NAME} SHARED ${PROJECT_SOURCES} ${PROJECT_RESOURCES}) | ||
|
||
generate_export_header( | ||
${PROJECT_NAME} EXPORT_FILE_NAME ${CMAKE_CURRENT_SOURCE_DIR}/include/${SCOPY_MODULE}/${PROJECT_NAME}_export.h | ||
) | ||
|
||
target_include_directories(${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include) | ||
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include/${SCOPY_MODULE}) | ||
|
||
target_include_directories(${PROJECT_NAME} PUBLIC scopy-pluginbase scopy-gui) | ||
|
||
target_link_libraries( | ||
${PROJECT_NAME} | ||
PUBLIC Qt::Widgets | ||
Qt::Core | ||
scopy-pluginbase | ||
scopy-gui | ||
scopy-iioutil | ||
scopy-iio-widgets | ||
) | ||
|
||
set(PLUGIN_NAME ${PROJECT_NAME} PARENT_SCOPE) | ||
|
||
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION ${SCOPY_PLUGIN_INSTALL_DIR}) |
Oops, something went wrong.