mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-01-13 13:14:29 -08:00
add test with iwyu and fix all headers accordingly
This commit is contained in:
@@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
project(mediafire-tools)
|
||||
|
||||
# creates file compile_commands.json in build directory which is used
|
||||
# to feed iwyu during tests
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
|
||||
|
||||
add_library(mfapi SHARED mfapi/mfconn.c mfapi/file.c mfapi/folder.c mfapi/apicalls/file_get_info.c mfapi/apicalls/user_get_info.c mfapi/apicalls/file_get_links.c mfapi/apicalls/user_session.c mfapi/apicalls/folder_get_info.c mfapi/apicalls/folder_create.c mfapi/apicalls/folder_get_content.c)
|
||||
set_target_properties(mfapi PROPERTIES COMPILE_FLAGS "-Wall -Wextra -Werror")
|
||||
@@ -12,3 +15,7 @@ set_target_properties(mfutils PROPERTIES COMPILE_FLAGS "-Wall -Wextra -Werror")
|
||||
add_executable(mfshell mfshell/main.c mfshell/mfshell.c mfshell/commands/auth.c mfshell/commands/chdir.c mfshell/commands/debug.c mfshell/commands/file.c mfshell/commands/get.c mfshell/commands/help.c mfshell/commands/host.c mfshell/commands/lcd.c mfshell/commands/links.c mfshell/commands/list.c mfshell/commands/lpwd.c mfshell/commands/mkdir.c mfshell/commands/pwd.c mfshell/commands/whoami.c)
|
||||
set_target_properties(mfshell PROPERTIES COMPILE_FLAGS "-Wall -Wextra -Werror")
|
||||
target_link_libraries(mfshell curl ssl crypto jansson mfapi mfutils)
|
||||
|
||||
enable_testing()
|
||||
|
||||
add_test(iwyu ../tests/iwyu.py)
|
||||
|
||||
Reference in New Issue
Block a user