Debian Codegraph @

src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/tests/condition_ut/CMakeLists.txt

raw
1 #Copyright (c) Microsoft. All rights reserved.
2 #Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
4 cmake_minimum_required (VERSION 3.5)
5
6 set(theseTestsName condition_ut)
7
8 generate_cppunittest_wrapper(${theseTestsName})
9
10 set(${theseTestsName}_c_files
11 ${CONDITION_C_FILE}
12 ${LOCK_C_FILE}
13 ${THREAD_C_FILE}
14 )
15
16 if(UNIX) # linux & apple
17 set(${theseTestsName}_c_files ${${theseTestsName}_c_files}
18 ../../adapters/linux_time.c
19 )
20 endif()
21
22 set(${theseTestsName}_h_files
23 )
24
25 build_c_test_artifacts(${theseTestsName} ON "tests/azure_c_shared_utility_tests")
26
27 if(WIN32)
28 else()
29 target_link_libraries(${theseTestsName}_exe pthread)
30 endif()
31
32 compile_c_test_artifacts_as(${theseTestsName} C99)