winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

CMakeLists.txt (671B)


      1 # Copyright (c) Microsoft Corporation.
      2 # Licensed under the MIT License.
      3 
      4 # JSON library
      5 find_package(nlohmann_json CONFIG REQUIRED)
      6 
      7 project(SFSClientTool LANGUAGES CXX)
      8 
      9 add_executable(${PROJECT_NAME})
     10 
     11 target_sources(${PROJECT_NAME} PRIVATE SFSClientTool.cpp)
     12 
     13 set(SFS_CLIENT_LIB_NAME "Microsoft::${CMAKE_PROJECT_NAME}")
     14 add_dependencies(${PROJECT_NAME} ${SFS_CLIENT_LIB_NAME})
     15 
     16 target_link_libraries(${PROJECT_NAME} PRIVATE ${SFS_CLIENT_LIB_NAME})
     17 target_link_libraries(${PROJECT_NAME} PRIVATE nlohmann_json::nlohmann_json)
     18 
     19 target_include_directories(${PROJECT_NAME} PUBLIC ../../client/include)
     20 
     21 set_compile_options_for_target(${PROJECT_NAME})