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