ansilove

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

commit 927aedfe9f93afba99b2b6e3a35c119ee13f2f15
parent 3f0fa8a3480a6e4cc2eb0e98b80d70be105f6a6b
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Tue,  9 Jun 2015 00:07:55 +0200

Switching to CMake to build the project

Diffstat:
M.gitignore | 6++++++
ACMakeLists.txt | 12++++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -37,3 +37,9 @@ CVS Backup[ ]of[ ]*.pages/ Backup[ ]of[ ]*.key/ Backup[ ]of[ ]*.numbers/ + +# CMake +CMakeFiles +CMakeCache.txt +Makefile +cmake_install.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -0,0 +1,12 @@ +cmake_minimum_required (VERSION 2.6) +project (ansilovec C) + +find_library(LIB_ZLIB NAMES z REQUIRED) +find_library(LIB_JPEG NAMES jpeg REQUIRED) +find_library(LIB_PNG NAMES png REQUIRED) +find_library(LIB_FREETYPE freetype REQUIRED) +find_library(LIB_GD NAMES gd REQUIRED) + +add_executable(ansilovec ansilove/main.c ansilove/albinfonts.c ansilove/ansilove.c ansilove/explode.c ansilove/filesize.c ansilove/strtolower.c ansilove/substr.c) + +target_link_libraries(ansilovec ${LIB_ZLIB} ${LIB_JPEG} ${LIB_PNG} ${LIB_FREETYPE} ${LIB_GD})