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