mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
4a8cac2a5a
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
24 lines
614 B
CMake
24 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()
|