Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Ionut Muthi <[email protected]>
  • Loading branch information
IonutMuthi committed Jun 11, 2024
1 parent 952e950 commit ac8b4f9
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
8 changes: 1 addition & 7 deletions plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ endif()

if(ENABLE_PLUGIN_IIODEBUGPLUGIN)
add_subdirectory(iiodebug)
list(APPEND PLUGINS ${PLUGIN_NAME})
configureinstallersettings(${PLUGIN_NAME} ${PLUGIN_DESCRIPTION} "fixed")
list(APPEND PLUGINS ${IIODEBUG_TARGET_NAME})
endif()

if(ENABLE_PLUGIN_DATALOGGER)
Expand Down Expand Up @@ -98,11 +97,6 @@ if(ENABLE_PLUGIN_M2K)
endif()
endif()

if(ENABLE_PLUGIN_IIODEBUGPLUGIN)
add_subdirectory(iiodebugplugin)
list(APPEND PLUGINS ${IIODEBUG_TARGET_NAME})
endif()

set(PLUGINS ${PLUGINS} PARENT_SCOPE)
set(PLUGIN_COMPONENTS ${PLUGIN_COMPONENTS} PARENT_SCOPE)
set(PLUGIN_COMPONENTS_FILES ${PLUGIN_COMPONENTS_FILES} PARENT_SCOPE)
Expand Down
1 change: 1 addition & 0 deletions plugins/iiodebug/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
include/iiodebug/scopy-iiodebug_export.h
include/iiodebug/scopy-iiodebug_config.h
7 changes: 7 additions & 0 deletions plugins/iiodebug/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ message(STATUS "building plugin: " ${SCOPY_MODULE})

project(scopy-${SCOPY_MODULE} VERSION 0.1 LANGUAGES CXX)

set(PLUGIN_DISPLAY_NAME "IIO Debug")
set(PLUGIN_DESCRIPTION "Debuger for IIO")

include(GenerateExportHeader)

# TODO: split stylesheet/resources and add here TODO: export header files correctly
Expand Down Expand Up @@ -64,6 +67,10 @@ target_link_libraries(
scopy-iio-widgets
)

if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
configureinstallersettings(${SCOPY_MODULE} ${PLUGIN_DESCRIPTION} "fixed")
endif()

set(IIODEBUG_TARGET_NAME ${PROJECT_NAME} PARENT_SCOPE)

install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION ${SCOPY_PLUGIN_INSTALL_DIR})
11 changes: 11 additions & 0 deletions plugins/iiodebug/include/iiodebug/scopy-iiodebug_config.h.cmakein
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#ifndef SCOPY_IIODEBUG_CONFIG_H_CMAKEIN
#define SCOPY_IIODEBUG_CONFIG_H_CMAKEIN

#define IIODEBUG_PLUGIN_DISPLAY_NAME "@PLUGIN_DISPLAY_NAME@"
#define IIODEBUG_PLUGIN_SCOPY_MODULE "@SCOPY_MODULE@"
#define IIODEBUG_PLUGIN_DESCRIPTION "@PLUGIN_DESCRIPTION@"

#cmakedefine ENABLE_SCOPYJS

#endif // SCOPY_IIODEBUG_CONFIG_H_CMAKEIN

0 comments on commit ac8b4f9

Please sign in to comment.