mastodont-c/CMakeLists.txt
nekobit 0b87c70d33 CMake
FossilOrigin-Name: 54a80af32b1632c011476138cb702c2ac25316620b13fa4fade5187c4c502044
2022-12-06 02:47:14 +00:00

50 lines
848 B
CMake

cmake_minimum_required(VERSION 3.14)
project(mastodont-c
VERSION 0.0
DESCRIPTION "Terrible library for Mastodon and Pleroma 'n Friends"
LANGUAGES C)
find_package(CURL REQUIRED)
add_library(mastodont-c STATIC)
target_sources(mastodont-c PUBLIC
account.c
application.c
attachment.c
chats.c
emoji.c
error.c
fetch.c
history.c
hooks.c
instance.c
json_helper.c
list.c
mastodont.c
nodeinfo.c
notification.c
pleroma.c
query.c
relationship.c
request.c
scrobbles.c
search.c
status.c
tag.c
timeline.c
uri.c
)
target_compile_options(mastodont-c PUBLIC
-Wall -Wextra -std=c99
-Wshadow -Wcast-align -Wstrict-prototypes
-Werror=implicit-function-decleration
)
target_link_options(mastodont-c PUBLIC
-lmastodont
${CURL_LDFLAGS_OTHER}
)
target_include_directories(mastodont-c PUBLIC include/)