diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c9c1fb03..45bf0a4ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,6 +101,7 @@ target_include_directories(open-ephys PRIVATE ${JUCE_DIRECTORY} ${JUCE_DIRECTORY target_compile_features(open-ephys PUBLIC cxx_auto_type cxx_generalized_initializers cxx_std_17) if(BUILD_TESTS) + enable_testing() add_definitions(-DBUILD_TESTS) add_library(gui_testable_source SHARED ${JUCE_SOURCE}) if(MSVC) diff --git a/Plugins/PluginRules.cmake b/Plugins/PluginRules.cmake index b7e585f72..7a347e577 100644 --- a/Plugins/PluginRules.cmake +++ b/Plugins/PluginRules.cmake @@ -113,10 +113,12 @@ if(BUILD_TESTS) set_property( TARGET ${PLUGIN_NAME}_tests PROPERTY RUNTIME_OUTPUT_DIRECTORY ${BIN_TESTS_DIR}/${PLUGIN_NAME}) - # set_property(TARGET ${PLUGIN_NAME}_testable PROPERTY - # RUNTIME_OUTPUT_DIRECTORY ${BIN_TESTS_DIR}/${PLUGIN_NAME}) - # set_property(TARGET ${PLUGIN_NAME}_testable PROPERTY - # LIBRARY_OUTPUT_DIRECTORY ${BIN_TESTS_DIR}/${PLUGIN_NAME}) + + add_custom_command( + TARGET ${PLUGIN_NAME}_tests + POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy $ + $) add_custom_command( TARGET ${PLUGIN_NAME}_tests