forked from Azure/azure-c-shared-utility
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dependencies.cmake
25 lines (23 loc) · 973 Bytes
/
dependencies.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#Copyright (c) Microsoft. All rights reserved.
#Licensed under the MIT license. See LICENSE file in the project root for full license information.
if(NOT ${use_installed_dependencies})
if (NOT TARGET azure_macro_utils_c)
if (EXISTS ${CMAKE_CURRENT_LIST_DIR}/deps/azure-macro-utils-c/CMakeLists.txt)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/deps/azure-macro-utils-c)
else()
message(FATAL_ERROR "Could not find azure-macro-utils-c source")
endif()
endif()
if (NOT TARGET umock_c)
if (EXISTS ${CMAKE_CURRENT_LIST_DIR}/deps/umock-c/CMakeLists.txt)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/deps/umock-c)
else()
message(FATAL_ERROR "Could not find umock-c source")
endif()
endif()
else()
find_package(azure_macro_utils_c REQUIRED CONFIG)
find_package(umock_c REQUIRED CONFIG)
endif()
include_directories(${MACRO_UTILS_INC_FOLDER})
include_directories(${UMOCK_C_INC_FOLDER})