File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,9 +69,10 @@ add_executable(open-ephys
6969 ${JUCE_DIRECTORY} /juce_gui_extra.${JUCE_FILES_EXTENSION}
7070 ${JUCE_DIRECTORY} /juce_opengl.${JUCE_FILES_EXTENSION}
7171 ${JUCE_DIRECTORY} /juce_video.${JUCE_FILES_EXTENSION}
72- ${RESOURCES_DIRECTORY} /Build-files/resources.rc
7372 )
74-
73+ if (MSVC )
74+ target_sources (open-ephys PRIVATE ${RESOURCES_DIRECTORY} /Build-files/resources.rc )
75+ endif ()
7576
7677
7778target_include_directories (open-ephys PRIVATE ${JUCE_DIRECTORY} ${JUCE_DIRECTORY} /modules )
@@ -85,6 +86,12 @@ add_custom_command(TARGET open-ephys POST_BUILD
8586 COMMAND ${CMAKE_COMMAND} -E make_directory "${BIN_SHARED_DIR} "
8687 COMMAND ${CMAKE_COMMAND} -E make_directory "${BIN_PLUGIN_DIR} "
8788 )
89+
90+ file (GLOB _bitfiles "${RESOURCES_DIRECTORY} /Bitfiles/*.bit" )
91+ add_custom_command (TARGET open-ephys POST_BUILD
92+ COMMAND ${CMAKE_COMMAND} -E copy ${_bitfiles} $<TARGET_FILE_DIR :open -ephys >
93+ )
94+
8895elseif (APPLE )
8996 set (BIN_PLUGIN_DIR $<TARGET_FILE_DIR :open -ephys >/../PlugIns)
9097 add_custom_command (TARGET open-ephys POST_BUILD
You can’t perform that action at this time.
0 commit comments