libansilove

Library for converting ANSI, ASCII, and other formats to PNG
Log | Files | Refs | README | LICENSE

CMakeLists.txt (1239B)


      1 cmake_minimum_required(VERSION 2.8.12)
      2 
      3 set(CMAKE_C_COMPILER clang)
      4 
      5 project(fuzz C)
      6 
      7 # Ansilove library
      8 find_path(ANSILOVE_INCLUDE_DIRS ansilove.h)
      9 find_library(ANSILOVE_LIBRARIES NAMES ansilove REQUIRED)
     10 include_directories(${ANSILOVE_INCLUDE_DIRS})
     11 
     12 set(SRC_ANSI ansi.c)
     13 set(SRC_ARTWORX artworx.c)
     14 set(SRC_BINARY binary.c)
     15 set(SRC_ICEDRAW icedraw.c)
     16 set(SRC_PCBOARD pcboard.c)
     17 set(SRC_TUNDRA tundra.c)
     18 set(SRC_XBIN xbin.c)
     19 
     20 add_definitions(-Wall -Wextra -std=c99 -pedantic -fsanitize=fuzzer)
     21 add_executable(ansi ${SRC_ANSI})
     22 add_executable(artworx ${SRC_ANSI})
     23 add_executable(binary ${SRC_BINARY})
     24 add_executable(icedraw ${SRC_BINARY})
     25 add_executable(pcboard ${SRC_BINARY})
     26 add_executable(tundra ${SRC_BINARY})
     27 add_executable(xbin ${SRC_BINARY})
     28 
     29 target_link_libraries(ansi ${ANSILOVE_LIBRARIES} -fsanitize=fuzzer)
     30 target_link_libraries(artworx ${ANSILOVE_LIBRARIES} -fsanitize=fuzzer)
     31 target_link_libraries(binary ${ANSILOVE_LIBRARIES} -fsanitize=fuzzer)
     32 target_link_libraries(icedraw ${ANSILOVE_LIBRARIES} -fsanitize=fuzzer)
     33 target_link_libraries(pcboard ${ANSILOVE_LIBRARIES} -fsanitize=fuzzer)
     34 target_link_libraries(tundra ${ANSILOVE_LIBRARIES} -fsanitize=fuzzer)
     35 target_link_libraries(xbin ${ANSILOVE_LIBRARIES} -fsanitize=fuzzer)