| 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 |
if(NOT ${use_installed_dependencies}) |
| 5 |
if (NOT TARGET azure_macro_utils_c) |
| 6 |
if (EXISTS ${CMAKE_CURRENT_LIST_DIR}/deps/azure-macro-utils-c/CMakeLists.txt) |
| 7 |
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/deps/azure-macro-utils-c) |
| 8 |
else() |
| 9 |
message(FATAL_ERROR "Could not find azure-macro-utils-c source") |
| 10 |
endif() |
| 11 |
endif() |
| 12 |
if (NOT TARGET umock_c) |
| 13 |
if (EXISTS ${CMAKE_CURRENT_LIST_DIR}/deps/umock-c/CMakeLists.txt) |
| 14 |
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/deps/umock-c) |
| 15 |
else() |
| 16 |
message(FATAL_ERROR "Could not find umock-c source") |
| 17 |
endif() |
| 18 |
endif() |
| 19 |
else() |
| 20 |
find_package(azure_macro_utils_c REQUIRED CONFIG) |
| 21 |
find_package(umock_c REQUIRED CONFIG) |
| 22 |
endif() |
| 23 |
|
| 24 |
include_directories(${MACRO_UTILS_INC_FOLDER}) |
| 25 |
include_directories(${UMOCK_C_INC_FOLDER}) |