Fix CMake file, seems to work?
FossilOrigin-Name: 9cdf6228a7269da563da7133c8864f18d48fdab3845108d5054c8b2e6140dbf1
This commit is contained in:
parent
0b87c70d33
commit
861433eab8
1 changed files with 39 additions and 27 deletions
|
@ -4,41 +4,47 @@ project(mastodont-c
|
|||
DESCRIPTION "Terrible library for Mastodon and Pleroma 'n Friends"
|
||||
LANGUAGES C)
|
||||
|
||||
# Useful
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
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
|
||||
src/account.c
|
||||
src/application.c
|
||||
src/attachment.c
|
||||
src/chats.c
|
||||
src/emoji.c
|
||||
src/error.c
|
||||
src/fetch.c
|
||||
src/history.c
|
||||
src/hooks.c
|
||||
src/instance.c
|
||||
src/json_helper.c
|
||||
src/list.c
|
||||
src/mastodont.c
|
||||
src/nodeinfo.c
|
||||
src/notification.c
|
||||
src/pleroma.c
|
||||
src/query.c
|
||||
src/relationship.c
|
||||
src/request.c
|
||||
src/scrobbles.c
|
||||
src/search.c
|
||||
src/status.c
|
||||
src/tag.c
|
||||
src/timeline.c
|
||||
src/uri.c
|
||||
|
||||
PRIVATE
|
||||
libs/cjson/cJSON.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
|
||||
|
@ -46,5 +52,11 @@ target_link_options(mastodont-c PUBLIC
|
|||
${CURL_LDFLAGS_OTHER}
|
||||
)
|
||||
|
||||
target_include_directories(mastodont-c PUBLIC include/)
|
||||
target_include_directories(mastodont-c PUBLIC
|
||||
include/
|
||||
${CURL_INCLUDE_DIRS}
|
||||
|
||||
PRIVATE
|
||||
libs/
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue