azure-sdk-for-cpp/samples/helpers/service/CMakeLists.txt
Anton Kolesnyk 6aac5aba17
Make sample service an object library (#3728)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-06-08 16:25:45 -07:00

21 lines
461 B
CMake

# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT
cmake_minimum_required (VERSION 3.12)
project(service LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
add_library(
service
OBJECT
inc/azure/service/client.hpp
src/client.cpp
)
target_link_libraries(service PUBLIC azure-core)
target_include_directories(service PUBLIC inc)