mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-21 10:45:12 -04:00

PLESSEY: add options NCR weighted mod-10, hide check digit(s) in HRT test suite: now runnable under MSVC 2019, 2017, 2015, MinGW/MSYS win32/README: update with MSVC 2019 and CMake instructions
23 lines
614 B
CMake
23 lines
614 B
CMake
# Copyright (C) 2008 by BogDan Vatra < bogdan@licentia.eu >
|
|
# Copyright (C) 2009-2021 Robin Stuart <rstuart114@gmail.com>
|
|
|
|
project(zint_frontend)
|
|
|
|
set(zint_frontend_SRCS main.c)
|
|
|
|
include_directories(BEFORE "${CMAKE_SOURCE_DIR}/backend")
|
|
|
|
add_executable(zint_frontend ${zint_frontend_SRCS})
|
|
|
|
set_target_properties(zint_frontend PROPERTIES OUTPUT_NAME "zint")
|
|
|
|
target_link_libraries(zint_frontend zint)
|
|
if(NOT HAVE_GETOPT)
|
|
target_link_libraries(zint_frontend zint_bundled_getopt)
|
|
endif()
|
|
|
|
install(TARGETS zint_frontend DESTINATION "${BIN_INSTALL_DIR}" RUNTIME)
|
|
|
|
if(ZINT_TEST)
|
|
add_subdirectory(tests)
|
|
endif()
|