This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-text-to-speech-tests/CMakeLists.txt

44 lines
1.1 KiB
CMake

add_project(aws-cpp-sdk-text-to-speech-tests
"Tests for the AWS text-to-speech C++ SDK"
aws-cpp-sdk-text-to-speech
aws-cpp-sdk-polly
testing-resources
aws-cpp-sdk-core)
# Headers are included in the source so that they show up in Visual Studio.
# They are included elsewhere for consistency.
file(GLOB TEXT_TO_SPEECH_TEST_SRC
"${CMAKE_CURRENT_SOURCE_DIR}/*.cpp"
)
if(MSVC AND BUILD_SHARED_LIBS)
add_definitions(-DGTEST_LINKED_AS_SHARED_LIBRARY=1)
endif()
if (CMAKE_CROSSCOMPILING)
set(AUTORUN_UNIT_TESTS OFF)
endif()
if (AUTORUN_UNIT_TESTS)
enable_testing()
endif()
if(PLATFORM_ANDROID AND BUILD_SHARED_LIBS)
add_library(${PROJECT_NAME} ${TEXT_TO_SPEECH_TEST_SRC})
else()
add_executable(${PROJECT_NAME} ${TEXT_TO_SPEECH_TEST_SRC})
endif()
set_compiler_flags(${PROJECT_NAME})
set_compiler_warnings(${PROJECT_NAME})
target_link_libraries(${PROJECT_NAME} ${PROJECT_LIBS})
if (AUTORUN_UNIT_TESTS)
ADD_CUSTOM_COMMAND( TARGET ${PROJECT_NAME} POST_BUILD COMMAND $<TARGET_FILE:${PROJECT_NAME}>)
endif()
if(NOT CMAKE_CROSSCOMPILING)
SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
endif()