yandex_smart_home_api_C/CMakeLists.txt

12 lines
506 B
CMake
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

cmake_minimum_required(VERSION 4.0)
set(CMAKE_C_STANDARD 11)
project(yandex_smart_home_api_c LANGUAGES C)
set (CMAKE_C_FLAGS "-g -O3")
add_executable(yandex_smart_home_api_c main.c json/json.c cJSON/cJSON.c)
target_link_libraries(yandex_smart_home_api_c curl)
# Правильно указываем папку с .so для линковки
target_link_directories(yandex_smart_home_api_c PRIVATE
"${CMAKE_SOURCE_DIR}/curl/build/lib/"
)
install(TARGETS yandex_smart_home_api_c RUNTIME DESTINATION bin)