mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
719613d4c3
HANXIN/QRCODE: use Hanzi/Kanji modes when compatible ECIs given manual: one true source now manual.pmd from which manual.txt is generated CLI: man page moved from frontend/zint.1.gz to docs/zint.1.gz, now generated from docs/zint.1.pmd add README.linux to root dir
32 lines
871 B
CMake
32 lines
871 B
CMake
# Copyright (C) 2008 by BogDan Vatra < bogdan@licentia.eu >
|
|
# Copyright (C) 2009-2021 Robin Stuart <rstuart114@gmail.com>
|
|
# vim: set ts=4 sw=4 et :
|
|
|
|
project(zint_frontend)
|
|
|
|
set(${PROJECT_NAME}_SRCS main.c)
|
|
|
|
add_executable(${PROJECT_NAME} ${zint_frontend_SRCS})
|
|
|
|
if(WIN32)
|
|
target_sources(${PROJECT_NAME} PRIVATE zint.rc)
|
|
endif()
|
|
|
|
target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_SOURCE_DIR}/backend")
|
|
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "zint")
|
|
|
|
target_link_libraries(${PROJECT_NAME} zint)
|
|
if(NOT HAVE_GETOPT)
|
|
target_link_libraries(${PROJECT_NAME} zint_bundled_getopt)
|
|
endif()
|
|
|
|
install(TARGETS ${PROJECT_NAME} DESTINATION "${BIN_INSTALL_DIR}" RUNTIME)
|
|
if(UNIX)
|
|
install(FILES "${CMAKE_SOURCE_DIR}/docs/zint.1.gz" DESTINATION "${MAN_INSTALL_DIR}/man1" COMPONENT doc)
|
|
endif()
|
|
|
|
if(ZINT_TEST)
|
|
add_subdirectory(tests)
|
|
endif()
|