0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-25 17:14:40 +03:00
LimeReport/3rdparty/zint-2.10.0/frontend/CMakeLists.txt

29 lines
746 B
CMake
Raw Normal View History

2022-01-26 15:16:57 +03:00
# 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(ZINT_TEST)
add_subdirectory(tests)
endif()