| @@ -102,4 +102,10 @@ if (NOT MSVC) | |||
| endif() | |||
| target_link_libraries(espeak-ng PUBLIC espeak-include) | |||
| if ((MINGW OR WIN32 OR MSVC) AND BUILD_SHARED_LIBS) | |||
| set_target_properties(espeak-ng PROPERTIES | |||
| RUNTIME_OUTPUT_DIRECTORY .. | |||
| ) | |||
| endif() | |||
| install(TARGETS espeak-ng LIBRARY) | |||
| @@ -10,6 +10,7 @@ macro(compiled_test _test_name) | |||
| target_link_libraries(test_${_test_name} PRIVATE | |||
| $<TARGET_PROPERTY:espeak-ng,LINK_LIBRARIES> | |||
| ) | |||
| target_compile_definitions(test_${_test_name} PRIVATE LIBESPEAK_NG_EXPORT=1) | |||
| target_include_directories( | |||
| test_${_test_name} PRIVATE | |||
| $<TARGET_PROPERTY:espeak-ng,SOURCE_DIR> | |||