Browse Source

windows: fix DLL build

master
Yury Popov 2 years ago
parent
commit
91b3959170
No account linked to committer's email address
2 changed files with 7 additions and 0 deletions
  1. 6
    0
      src/libespeak-ng/CMakeLists.txt
  2. 1
    0
      tests/CMakeLists.txt

+ 6
- 0
src/libespeak-ng/CMakeLists.txt 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
- 0
tests/CMakeLists.txt 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>

Loading…
Cancel
Save