12 lines
506 B
CMake
12 lines
506 B
CMake
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)
|