cmake_minimum_required(VERSION 3.5) project(zero-epwing) include_directories(eb) link_directories(eb/eb/.libs jansson/lib) add_executable(zero-epwing main.c book.c convert.c hooks.c) target_link_libraries(zero-epwing libeb.a libz.a libjansson.a) if (WIN32 OR APPLE) target_link_libraries(zero-epwing libiconv.a) endif (WIN32 OR APPLE) target_link_libraries(zero-epwing)