2020-07-30 18:06:01 +00:00
|
|
|
cmake_minimum_required(VERSION 3.7)
|
2018-02-15 14:00:16 +00:00
|
|
|
project(
|
|
|
|
feader
|
2020-07-30 18:06:32 +00:00
|
|
|
VERSION 0.1.0
|
|
|
|
DESCRIPTION "The C library for Feader"
|
2018-02-15 14:00:16 +00:00
|
|
|
)
|
2020-07-30 18:06:32 +00:00
|
|
|
set(CMAKE_C_FLAGS, "-g -Wall")
|
2020-07-30 18:14:37 +00:00
|
|
|
include_directories(
|
|
|
|
"/usr/include"
|
|
|
|
"/usr/include/libxml2"
|
|
|
|
"/usr/include/x86_64-linux-gnu"
|
|
|
|
"/data/data/com.termux/files/usr/include"
|
|
|
|
"/data/data/com.termux/files/usr/include/libxml2"
|
|
|
|
"include"
|
|
|
|
)
|
|
|
|
link_directories(
|
|
|
|
"/usr/lib/x86_64-linux-gnu"
|
|
|
|
"/usr/lib"
|
|
|
|
"/data/data/com.termux/files/usr/lib"
|
|
|
|
"lib"
|
|
|
|
)
|
|
|
|
add_executable(feader-cli src/feader.c)
|
2018-02-15 14:00:16 +00:00
|
|
|
add_library(
|
2020-07-30 18:06:01 +00:00
|
|
|
feader SHARED
|
|
|
|
src/feader.c
|
2018-02-15 14:00:16 +00:00
|
|
|
)
|
2020-07-30 18:14:37 +00:00
|
|
|
target_link_libraries(
|
|
|
|
feader-cli
|
|
|
|
curl
|
|
|
|
sqlite3
|
|
|
|
xml2
|
|
|
|
)
|
|
|
|
target_link_libraries(
|
|
|
|
feader
|
|
|
|
curl
|
|
|
|
sqlite3
|
|
|
|
xml2
|
|
|
|
)
|
2020-07-30 18:06:32 +00:00
|
|
|
set_target_properties(
|
|
|
|
feader
|
|
|
|
PROPERTIES
|
|
|
|
VERSION ${PROJECT_VERSION}
|
|
|
|
SOVERSION 0
|
|
|
|
)
|