ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit d1b47ea044d182631f05fc45a82c1cc6b99cc091
parent 7773474eb8aefcfb8f8eb7e7a725b3eb902c807f
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri, 29 Jun 2018 18:57:46 +0200

Update CMakeLists.txt: we do not need GD anymore, only libansilove

Diffstat:
MCMakeLists.txt | 16+++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -13,14 +13,12 @@ check_function_exists(strtonum HAVE_STRTONUM) # Additional include directories for compat functions include_directories("compat") -# GD -find_path(GD_INCLUDE_DIRS gd.h) -find_library(GD_LIBRARIES NAMES gd REQUIRED) -include_directories(${GD_INCLUDE_DIRS}) +# Ansilove library +find_path(ANSILOVE_INCLUDE_DIRS ansilove.h) +find_library(ANSILOVE_LIBRARIES NAMES ansilove REQUIRED) +include_directories(${ANSILOVE_INCLUDE_DIRS}) -set(SRC src/main.c src/fonts.c src/ansilove.c src/explode.c src/strtolower.c src/output.c src/sauce.c) - -set(LOADERS src/loaders/ansi.c src/loaders/artworx.c src/loaders/binary.c src/loaders/icedraw.c src/loaders/pcboard.c src/loaders/tundra.c src/loaders/xbin.c) +set(SRC src/main.c src/strtolower.c src/sauce.c) if(NOT HAVE_PLEDGE) set (SRC ${SRC} compat/pledge.c) @@ -31,9 +29,9 @@ if(NOT HAVE_STRTONUM) endif() add_definitions(-Wall -Wextra -std=c99 -pedantic) -add_executable(ansilove ${SRC} ${LOADERS}) +add_executable(ansilove ${SRC}) -target_link_libraries(ansilove ${GD_LIBRARIES} m) +target_link_libraries(ansilove ${ANSILOVE_LIBRARIES} m) install(TARGETS ansilove DESTINATION bin) install(FILES ansilove.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1/)