2008-09-19 02:44:52 +12:00
|
|
|
# (c) 2008 by BogDan Vatra < bogdan@licentia.eu >
|
|
|
|
|
|
|
|
project(zint_frontend)
|
|
|
|
|
2021-03-04 02:58:32 +13:00
|
|
|
set(zint_frontend_SRCS main.c)
|
|
|
|
|
2008-09-27 00:11:43 +12:00
|
|
|
include_directories(BEFORE "${CMAKE_SOURCE_DIR}/backend")
|
2008-09-19 02:44:52 +12:00
|
|
|
|
|
|
|
add_executable(zint_frontend ${zint_frontend_SRCS})
|
|
|
|
|
2008-09-24 20:59:39 +12:00
|
|
|
set_target_properties(zint_frontend PROPERTIES OUTPUT_NAME "zint")
|
|
|
|
|
2008-09-19 02:44:52 +12:00
|
|
|
target_link_libraries(zint_frontend zint)
|
2021-03-30 23:00:24 +13:00
|
|
|
if(NOT HAVE_GETOPT)
|
|
|
|
target_link_libraries(zint_frontend zint_bundled_getopt)
|
|
|
|
endif(NOT HAVE_GETOPT)
|
2009-05-20 20:33:01 +12:00
|
|
|
|
|
|
|
install(TARGETS zint_frontend DESTINATION "${BIN_INSTALL_DIR}" RUNTIME)
|
2021-03-30 03:39:40 +13:00
|
|
|
|
|
|
|
if(ZINT_TEST)
|
|
|
|
add_subdirectory(tests)
|
|
|
|
endif(ZINT_TEST)
|