Skip to content

Commit 06face7

Browse files
committed
Enable all plugins in cmake build
1 parent a2cdcbe commit 06face7

20 files changed

Lines changed: 309 additions & 9 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ if(MSVC)
9898
target_link_libraries(open-ephys setupapi.lib opengl32.lib glu32.lib)
9999
set_property(TARGET open-ephys APPEND_STRING PROPERTY LINK_FLAGS "/NODEFAULTLIB:\"libcmt.lib\" /NODEFAULTLIB:\"msvcrt.lib\" /SUBSYSTEM:WINDOWS")
100100
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
101-
set(DLLDIR "Win64")
101+
set(DLLARCH "Win64")
102102
else()
103-
set(DLLDIR "Win32")
103+
set(DLLARCH "Win32")
104104
endif()
105-
set(_copysrc "${RESOURCES_DIRECTORY}/DLLs/${DLLDIR}/*.dll" )
106-
file(GLOB _dllfiles ${_copysrc})
105+
set(DLLDIR ${RESOURCES_DIRECTORY}/DLLs/${DLLARCH})
106+
file(GLOB _dllfiles "${DLLDIR}/*.dll")
107107
add_custom_command(TARGET open-ephys POST_BUILD
108108
COMMAND ${CMAKE_COMMAND} -E copy ${_dllfiles} ${BIN_SHARED_DIR}
109109
)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#plugin build file
2+
cmake_minimum_required(VERSION 3.5.0)
3+
4+
#include common rules
5+
include(../PluginRules.cmake)
6+
7+
#add sources, not including OpenEphysLib.cpp
8+
add_sources(${PLUGIN_NAME}
9+
serial/ofArduino.cpp
10+
serial/ofArduino.h
11+
ArduinoOutput.cpp
12+
ArduinoOutput.h
13+
ArduinoOutputEditor.cpp
14+
ArduinoOutputEditor.h
15+
)
16+
if(MSVC)
17+
target_link_libraries(${PLUGIN_NAME} Winmm.lib)
18+
endif()
19+
#optional: create IDE groups
20+
plugin_create_filters()
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#plugin build file
2+
cmake_minimum_required(VERSION 3.5.0)
3+
4+
#include common rules
5+
include(../PluginRules.cmake)
6+
7+
#add sources, not including OpenEphysLib.cpp
8+
add_sources(${PLUGIN_NAME}
9+
SpikeDetector/SpikeDetector.cpp
10+
SpikeDetector/SpikeDetector.h
11+
SpikeDetector/SpikeDetectorEditor.cpp
12+
SpikeDetector/SpikeDetectorEditor.h
13+
SpikeDisplayNode/SpikeDisplayCanvas.cpp
14+
SpikeDisplayNode/SpikeDisplayCanvas.h
15+
SpikeDisplayNode/SpikeDisplayEditor.cpp
16+
SpikeDisplayNode/SpikeDisplayEditor.h
17+
SpikeDisplayNode/SpikeDisplayNode.cpp
18+
SpikeDisplayNode/SpikeDisplayNode.h
19+
)
20+
21+
#optional: create IDE groups
22+
plugin_create_filters()

Plugins/CMakeLists.txt

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,20 @@ set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS
1111
)
1212

1313
#add plugin subdirectories
14-
add_subdirectory(CAR)
14+
add_subdirectory(ArduinoOutput)
15+
add_subdirectory(BasicSpikeDisplay)
1516
add_subdirectory(BinaryFormat)
17+
add_subdirectory(CAR)
18+
add_subdirectory(ChannelMappingNode)
19+
add_subdirectory(EvntTrigAvg)
20+
add_subdirectory(FilterNode)
21+
add_subdirectory(IntanRecordingController)
22+
add_subdirectory(LfpDisplayNode)
23+
add_subdirectory(LfpDisplayNodeBeta)
24+
add_subdirectory(PhaseDetector)
25+
add_subdirectory(PulsePalOutput)
26+
add_subdirectory(RecordControl)
27+
add_subdirectory(Rectifier)
28+
add_subdirectory(RhythmNode)
29+
add_subdirectory(SerialInput)
30+
add_subdirectory(SpikeSorter)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#plugin build file
2+
cmake_minimum_required(VERSION 3.5.0)
3+
4+
#include common rules
5+
include(../PluginRules.cmake)
6+
7+
#add sources, not including OpenEphysLib.cpp
8+
add_sources(${PLUGIN_NAME}
9+
ChannelMappingNode.cpp
10+
ChannelMappingNode.h
11+
ChannelMappingEditor.cpp
12+
ChannelMappingEditor.h
13+
)
14+
15+
#optional: create IDE groups
16+
#plugin_create_filters()

Plugins/ChannelMappingNode/ChannelMappingEditor.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
#ifndef __CHANNELMAPPINGEDITOR_H_73D0AB34__
2525
#define __CHANNELMAPPINGEDITOR_H_73D0AB34__
2626

27-
28-
#include "../../../JuceLibraryCode/JuceHeader.h"
2927
#include <EditorHeaders.h>
3028

3129
#define NUM_REFERENCES 4

Plugins/EvntTrigAvg/CMakeLists.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#plugin build file
2+
cmake_minimum_required(VERSION 3.5.0)
3+
4+
#include common rules
5+
include(../PluginRules.cmake)
6+
7+
#add sources, not including OpenEphysLib.cpp
8+
add_sources(${PLUGIN_NAME}
9+
EvntTrigAvg.cpp
10+
EvntTrigAvg.h
11+
EvntTrigAvgCanvas.cpp
12+
EvntTrigAvgCanvas.h
13+
EvntTrigAvgEditor.cpp
14+
EvntTrigAvgEditor.h
15+
)
16+
17+
#optional: create IDE groups
18+
#plugin_create_filters()

Plugins/FilterNode/CMakeLists.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#plugin build file
2+
cmake_minimum_required(VERSION 3.5.0)
3+
4+
#include common rules
5+
include(../PluginRules.cmake)
6+
7+
#add sources, not including OpenEphysLib.cpp
8+
add_sources(${PLUGIN_NAME}
9+
FilterNode.cpp
10+
FilterNode.h
11+
FilterEditor.cpp
12+
FilterEditor.h
13+
)
14+
15+
#optional: create IDE groups
16+
#plugin_create_filters()
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#plugin build file
2+
cmake_minimum_required(VERSION 3.5.0)
3+
4+
#include common rules
5+
include(../PluginRules.cmake)
6+
7+
#add sources, not including OpenEphysLib.cpp
8+
add_sources(${PLUGIN_NAME}
9+
rhythm-api/okFrontPanelDLL.h
10+
rhythm-api/rhd2000datablockusb3.cpp
11+
rhythm-api/rhd2000datablockusb3.h
12+
rhythm-api/rhd2000evalboardusb3.cpp
13+
rhythm-api/rhd2000evalboardusb3.h
14+
rhythm-api/rhd2000registersusb3.cpp
15+
rhythm-api/rhd2000registersusb3.h
16+
RHD2000Thread.cpp
17+
RHD2000Thread.h
18+
RHD2000Editor.cpp
19+
RHD2000Editor.h
20+
USBThread.cpp
21+
USBThread.h
22+
)
23+
24+
if (MSVC)
25+
target_link_libraries(${PLUGIN_NAME} ${DLLDIR}/okFrontPanel.lib)
26+
endif()
27+
28+
#optional: create IDE groups
29+
plugin_create_filters()
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#plugin build file
2+
cmake_minimum_required(VERSION 3.5.0)
3+
4+
#include common rules
5+
include(../PluginRules.cmake)
6+
7+
#add sources, not including OpenEphysLib.cpp
8+
add_sources(${PLUGIN_NAME}
9+
LfpDisplayNode.cpp
10+
LfpDisplayNode.h
11+
LfpDisplayEditor.cpp
12+
LfpDisplayEditor.h
13+
LfpDisplayCanvas.cpp
14+
LfpDisplayCanvas.h
15+
)
16+
17+
#optional: create IDE groups
18+
#plugin_create_filters()

0 commit comments

Comments
 (0)