windows: fix DLL build

This commit is contained in:
Yury Popov
2022-12-09 00:49:30 +03:00
parent 5d547e2676
commit 91b3959170
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -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)
+1
View File
@@ -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>