libyadisk/CMakeLists.txt

15 lines
553 B
CMake
Raw Normal View History

2023-11-27 08:40:40 +03:00
cmake_minimum_required(VERSION 3.5)
project(YaDisk)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
find_package(Neon REQUIRED)
find_package(JsonC REQUIRED)
2023-11-27 09:03:47 +03:00
add_library(yadisk src/yandex_disk_api.c)
add_executable(test-app tests/app.c)
2023-11-27 08:40:40 +03:00
target_include_directories(yadisk PRIVATE ${NEON_INCLUDE_DIR} ${JSON_C_INCLUDE_DIR})
2023-11-27 09:03:47 +03:00
target_link_libraries(yadisk ${NEON_LIBRARIES} ${JSON_C_LIBRARIES})
target_include_directories(test-app PRIVATE "${CMAKE_SOURCE_DIR}/src" ${NEON_INCLUDE_DIR} ${JSON_C_INCLUDE_DIR})
target_link_libraries(test-app yadisk)