@@ -9,15 +9,22 @@ if (CMAKE_SIZEOF_VOID_P EQUAL 8)
9
9
else ()
10
10
SET (SYNCHRONI_SDK_WRAPPER_COMPILED_NAME "SynchroniLib.dll" )
11
11
SET (SYNCHRONI_SDK_WRAPPER_COMPILED_NAME_DOT_LIB "SynchroniLib.lib" )
12
+ SET (SYNCHRONI_SDK_LINK_NAME_LIB "sensor" )
13
+ SET (SYNCHRONI_SDK_LINK_NAME_DOT_LIB "sensor.lib" )
14
+ SET (SYNCHRONI_SDK_ARCH "Win64" )
12
15
endif (APPLE )
13
16
else (CMAKE_SIZEOF_VOID_P EQUAL 8)
14
17
if (APPLE )
15
18
SET (SYNCHRONI_SDK_WRAPPER_COMPILED_NAME "libSynchroniLib.dylib" )
16
19
elseif (UNIX )
17
20
SET (SYNCHRONI_SDK_WRAPPER_COMPILED_NAME "libSynchroniLib.so" )
18
21
else ()
22
+ SET (SYNCHRONI_SDK_WRAPPER_NAME "SynchroniLib32" )
19
23
SET (SYNCHRONI_SDK_WRAPPER_COMPILED_NAME "SynchroniLib32.dll" )
20
24
SET (SYNCHRONI_SDK_WRAPPER_COMPILED_NAME_DOT_LIB "SynchroniLib32.lib" )
25
+ SET (SYNCHRONI_SDK_LINK_NAME_LIB "sensor32" )
26
+ SET (SYNCHRONI_SDK_LINK_NAME_DOT_LIB "sensor32.lib" )
27
+ SET (SYNCHRONI_SDK_ARCH "Win32" )
21
28
endif (APPLE )
22
29
endif (CMAKE_SIZEOF_VOID_P EQUAL 8)
23
30
@@ -36,9 +43,9 @@ add_library (
36
43
if (APPLE )
37
44
target_link_libraries (${SYNCHRONI_SDK_WRAPPER_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} /third_party/synchroni/lib/mac/sensor.xcframework)
38
45
elseif (UNIX )
39
- SET (SYNCHRONI_SDK_WRAPPER_COMPILED_NAME "libSynchroniLib .so" )
46
+ target_link_libraries ( ${SYNCHRONI_SDK_WRAPPER_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} /third_party/synchroni/lib/linux/x86_64/For$<CONFIG>/libsensor .so)
40
47
else ()
41
- target_link_libraries (${SYNCHRONI_SDK_WRAPPER_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} /third_party/synchroni/lib/windows/For$<CONFIG>/sensor.lib )
48
+ target_link_libraries (${SYNCHRONI_SDK_WRAPPER_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} /third_party/synchroni/lib/windows/${SYNCHRONI_SDK_ARCH} / For$<CONFIG>/${SYNCHRONI_SDK_LINK_NAME_DOT_LIB} )
42
49
endif (APPLE )
43
50
44
51
@@ -72,13 +79,13 @@ if (MSVC)
72
79
COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR} /compiled/$<CONFIG>/${SYNCHRONI_SDK_WRAPPER_NAME} .dll" "${CMAKE_CURRENT_SOURCE_DIR} /julia_package/brainflow/lib/${SYNCHRONI_SDK_WRAPPER_NAME} .dll"
73
80
COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR} /compiled/$<CONFIG>/${SYNCHRONI_SDK_WRAPPER_NAME} .dll" "${CMAKE_CURRENT_SOURCE_DIR} /nodejs_package/brainflow/lib/${SYNCHRONI_SDK_WRAPPER_NAME} .dll"
74
81
COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR} /compiled/$<CONFIG>/${SYNCHRONI_SDK_WRAPPER_NAME} .dll" "${CMAKE_CURRENT_SOURCE_DIR} /rust_package/brainflow/lib/${SYNCHRONI_SDK_WRAPPER_NAME} .dll"
75
- COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_LIST_DIR} /lib/windows/For$<CONFIG>/${SYNCHRONI_SDK_NAME } .dll" "${CMAKE_CURRENT_SOURCE_DIR} /matlab_package/brainflow/lib/${SYNCHRONI_SDK_NAME } .dll"
76
- COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_LIST_DIR} /lib/windows/For$<CONFIG>/${SYNCHRONI_SDK_NAME } .dll" "${CMAKE_CURRENT_SOURCE_DIR} /python_package/brainflow/lib/${SYNCHRONI_SDK_NAME } .dll"
77
- COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_LIST_DIR} /lib/windows/For$<CONFIG>/${SYNCHRONI_SDK_NAME } .dll" "${CMAKE_CURRENT_SOURCE_DIR} /csharp_package/brainflow/brainflow/lib/${SYNCHRONI_SDK_NAME } .dll"
78
- COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_LIST_DIR} /lib/windows/For$<CONFIG>/${SYNCHRONI_SDK_NAME } .dll" "${CMAKE_CURRENT_SOURCE_DIR} /java_package/brainflow/src/main/resources/${SYNCHRONI_SDK_NAME } .dll"
79
- COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_LIST_DIR} /lib/windows/For$<CONFIG>/${SYNCHRONI_SDK_NAME } .dll" "${CMAKE_CURRENT_SOURCE_DIR} /julia_package/brainflow/lib/${SYNCHRONI_SDK_NAME } .dll"
80
- COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_LIST_DIR} /lib/windows/For$<CONFIG>/${SYNCHRONI_SDK_NAME } .dll" "${CMAKE_CURRENT_SOURCE_DIR} /nodejs_package/brainflow/lib/${SYNCHRONI_SDK_NAME } .dll"
81
- COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_LIST_DIR} /lib/windows/For$<CONFIG>/${SYNCHRONI_SDK_NAME } .dll" "${CMAKE_CURRENT_SOURCE_DIR} /rust_package/brainflow/lib/${SYNCHRONI_SDK_NAME } .dll"
82
+ COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_LIST_DIR} /lib/windows/${SYNCHRONI_SDK_ARCH} / For$<CONFIG>/${SYNCHRONI_SDK_LINK_NAME_LIB } .dll" "${CMAKE_CURRENT_SOURCE_DIR} /matlab_package/brainflow/lib/${SYNCHRONI_SDK_LINK_NAME_LIB } .dll"
83
+ COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_LIST_DIR} /lib/windows/${SYNCHRONI_SDK_ARCH} / For$<CONFIG>/${SYNCHRONI_SDK_LINK_NAME_LIB } .dll" "${CMAKE_CURRENT_SOURCE_DIR} /python_package/brainflow/lib/${SYNCHRONI_SDK_LINK_NAME_LIB } .dll"
84
+ COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_LIST_DIR} /lib/windows/${SYNCHRONI_SDK_ARCH} / For$<CONFIG>/${SYNCHRONI_SDK_LINK_NAME_LIB } .dll" "${CMAKE_CURRENT_SOURCE_DIR} /csharp_package/brainflow/brainflow/lib/${SYNCHRONI_SDK_LINK_NAME_LIB } .dll"
85
+ COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_LIST_DIR} /lib/windows/${SYNCHRONI_SDK_ARCH} / For$<CONFIG>/${SYNCHRONI_SDK_LINK_NAME_LIB } .dll" "${CMAKE_CURRENT_SOURCE_DIR} /java_package/brainflow/src/main/resources/${SYNCHRONI_SDK_LINK_NAME_LIB } .dll"
86
+ COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_LIST_DIR} /lib/windows/${SYNCHRONI_SDK_ARCH} / For$<CONFIG>/${SYNCHRONI_SDK_LINK_NAME_LIB } .dll" "${CMAKE_CURRENT_SOURCE_DIR} /julia_package/brainflow/lib/${SYNCHRONI_SDK_LINK_NAME_LIB } .dll"
87
+ COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_LIST_DIR} /lib/windows/${SYNCHRONI_SDK_ARCH} / For$<CONFIG>/${SYNCHRONI_SDK_LINK_NAME_LIB } .dll" "${CMAKE_CURRENT_SOURCE_DIR} /nodejs_package/brainflow/lib/${SYNCHRONI_SDK_LINK_NAME_LIB } .dll"
88
+ COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_LIST_DIR} /lib/windows/${SYNCHRONI_SDK_ARCH} / For$<CONFIG>/${SYNCHRONI_SDK_LINK_NAME_LIB } .dll" "${CMAKE_CURRENT_SOURCE_DIR} /rust_package/brainflow/lib/${SYNCHRONI_SDK_LINK_NAME_LIB } .dll"
82
89
)
83
90
endif (MSVC )
84
91
@@ -91,6 +98,13 @@ if (UNIX)
91
98
COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR} /compiled/${SYNCHRONI_SDK_WRAPPER_COMPILED_NAME} " "${CMAKE_CURRENT_SOURCE_DIR} /csharp_package/brainflow/brainflow/lib/${SYNCHRONI_SDK_WRAPPER_COMPILED_NAME} "
92
99
COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR} /compiled/${SYNCHRONI_SDK_WRAPPER_COMPILED_NAME} " "${CMAKE_CURRENT_SOURCE_DIR} /matlab_package/brainflow/lib/${SYNCHRONI_SDK_WRAPPER_COMPILED_NAME} "
93
100
COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR} /compiled/${SYNCHRONI_SDK_WRAPPER_COMPILED_NAME} " "${CMAKE_CURRENT_SOURCE_DIR} /rust_package/brainflow/lib/${SYNCHRONI_SDK_WRAPPER_COMPILED_NAME} "
101
+ COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_LIST_DIR} /lib/linux/x86_64/For$<CONFIG>/libsensor.so" "${CMAKE_CURRENT_SOURCE_DIR} /matlab_package/brainflow/lib/libsensor.so"
102
+ COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_LIST_DIR} /lib/linux/x86_64/For$<CONFIG>/libsensor.so" "${CMAKE_CURRENT_SOURCE_DIR} /python_package/brainflow/lib/libsensor.so"
103
+ COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_LIST_DIR} /lib/linux/x86_64/For$<CONFIG>/libsensor.so" "${CMAKE_CURRENT_SOURCE_DIR} /csharp_package/brainflow/brainflow/lib/libsensor.so"
104
+ COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_LIST_DIR} /lib/linux/x86_64/For$<CONFIG>/libsensor.so" "${CMAKE_CURRENT_SOURCE_DIR} /java_package/brainflow/src/main/resources/libsensor.so"
105
+ COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_LIST_DIR} /lib/linux/x86_64/For$<CONFIG>/libsensor.so" "${CMAKE_CURRENT_SOURCE_DIR} /julia_package/brainflow/lib/libsensor.so"
106
+ COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_LIST_DIR} /lib/linux/x86_64/For$<CONFIG>/libsensor.so" "${CMAKE_CURRENT_SOURCE_DIR} /nodejs_package/brainflow/lib/libsensor.so"
107
+ COMMAND "${CMAKE_COMMAND} " -E copy_if_different "${CMAKE_CURRENT_LIST_DIR} /lib/linux/x86_64/For$<CONFIG>/libsensor.so" "${CMAKE_CURRENT_SOURCE_DIR} /rust_package/brainflow/lib/libsensor.so"
94
108
)
95
109
endif (UNIX )
96
110
@@ -99,19 +113,28 @@ if (MSVC)
99
113
install (
100
114
FILES
101
115
${CMAKE_CURRENT_SOURCE_DIR} /compiled/$<CONFIG>/SynchroniLib.dll
102
- ${CMAKE_CURRENT_SOURCE_DIR} /third_party/synchroni/lib/windows/For$<CONFIG>/sensor .dll
116
+ ${CMAKE_CURRENT_SOURCE_DIR} /third_party/synchroni/lib/windows/${SYNCHRONI_SDK_ARCH} / For$<CONFIG>/${SYNCHRONI_SDK_LINK_NAME_LIB} .dll
103
117
DESTINATION lib
104
118
)
105
119
else (CMAKE_SIZEOF_VOID_P EQUAL 8)
106
120
install (
107
121
FILES
108
122
${CMAKE_CURRENT_SOURCE_DIR} /compiled/$<CONFIG>/SynchroniLib32.dll
109
- ${CMAKE_CURRENT_SOURCE_DIR} /third_party/synchroni/lib/windows/For$<CONFIG>/sensor32 .dll
123
+ ${CMAKE_CURRENT_SOURCE_DIR} /third_party/synchroni/lib/windows/${SYNCHRONI_SDK_ARCH} / For$<CONFIG>/${SYNCHRONI_SDK_LINK_NAME_LIB} .dll
110
124
DESTINATION lib
111
125
)
112
126
endif (CMAKE_SIZEOF_VOID_P EQUAL 8)
113
127
endif (MSVC )
114
128
129
+ if (UNIX )
130
+ install (
131
+ FILES
132
+ ${CMAKE_CURRENT_SOURCE_DIR} /compiled/$<CONFIG>/${SYNCHRONI_SDK_WRAPPER_COMPILED_NAME}
133
+ ${CMAKE_CURRENT_SOURCE_DIR} /third_party/synchroni/lib/linux/x86_64/For$<CONFIG>/libsensor.so
134
+ DESTINATION lib
135
+ )
136
+ endif (UNIX )
137
+
115
138
install (
116
139
TARGETS ${SYNCHRONI_SDK_WRAPPER_NAME}
117
140
EXPORT ${TARGETS_EXPORT_NAME}
0 commit comments