Include library builds and version numbers
This commit is contained in:
parent
81b124a7c7
commit
f1009a3808
1 changed files with 23 additions and 4 deletions
|
@ -1,5 +1,9 @@
|
||||||
cmake_minimum_required(VERSION 3.7)
|
cmake_minimum_required(VERSION 3.7)
|
||||||
project(Feader)
|
project(
|
||||||
|
feader
|
||||||
|
VERSION 0.1.0
|
||||||
|
DESCRIPTION "The C library for Feader"
|
||||||
|
)
|
||||||
set(CMAKE_C_FLAGS, "-g -Wall")
|
set(CMAKE_C_FLAGS, "-g -Wall")
|
||||||
include_directories(
|
include_directories(
|
||||||
"/usr/local/include"
|
"/usr/local/include"
|
||||||
|
@ -15,11 +19,26 @@ link_directories(
|
||||||
"/data/data/com.termux/files/usr/lib"
|
"/data/data/com.termux/files/usr/lib"
|
||||||
"lib"
|
"lib"
|
||||||
)
|
)
|
||||||
add_executable(Feader src/feader.c)
|
add_executable(feader-cli src/feader.c)
|
||||||
find_package(libcurl)
|
add_library(
|
||||||
|
feader SHARED
|
||||||
|
src/feader.c
|
||||||
|
)
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
Feader
|
feader-cli
|
||||||
curl
|
curl
|
||||||
sqlite3
|
sqlite3
|
||||||
xml2
|
xml2
|
||||||
)
|
)
|
||||||
|
target_link_libraries(
|
||||||
|
feader
|
||||||
|
curl
|
||||||
|
sqlite3
|
||||||
|
xml2
|
||||||
|
)
|
||||||
|
set_target_properties(
|
||||||
|
feader
|
||||||
|
PROPERTIES
|
||||||
|
VERSION ${PROJECT_VERSION}
|
||||||
|
SOVERSION 0
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue