2021-06-10 22:15:39 +12:00
|
|
|
# Copyright (C) 2008 by BogDan Vatra < bogdan@licentia.eu >
|
2024-01-18 11:04:18 +13:00
|
|
|
# Copyright (C) 2009-2024 Robin Stuart <rstuart114@gmail.com>
|
2021-08-13 01:54:21 +12:00
|
|
|
# vim: set ts=4 sw=4 et :
|
2008-09-19 02:44:52 +12:00
|
|
|
|
|
|
|
project(zint_frontend)
|
|
|
|
|
2021-07-07 03:35:04 +12:00
|
|
|
set(${PROJECT_NAME}_SRCS main.c)
|
2021-03-04 02:58:32 +13:00
|
|
|
|
2021-07-07 03:35:04 +12:00
|
|
|
add_executable(${PROJECT_NAME} ${zint_frontend_SRCS})
|
2008-09-19 02:44:52 +12:00
|
|
|
|
2021-08-13 01:54:21 +12:00
|
|
|
if(WIN32)
|
|
|
|
target_sources(${PROJECT_NAME} PRIVATE zint.rc)
|
|
|
|
endif()
|
|
|
|
|
2023-10-17 20:19:49 +13:00
|
|
|
target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../backend")
|
2008-09-19 02:44:52 +12:00
|
|
|
|
2021-07-07 03:35:04 +12:00
|
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "zint")
|
2008-09-24 20:59:39 +12:00
|
|
|
|
2022-11-22 00:41:29 +13:00
|
|
|
if(ZINT_SHARED)
|
|
|
|
target_link_libraries(${PROJECT_NAME} zint)
|
|
|
|
else()
|
|
|
|
target_link_libraries(${PROJECT_NAME} zint-static)
|
|
|
|
endif()
|
2024-01-18 11:04:18 +13:00
|
|
|
if(NOT HAVE_GETOPT_LONG_ONLY)
|
2021-07-07 03:35:04 +12:00
|
|
|
target_link_libraries(${PROJECT_NAME} zint_bundled_getopt)
|
2021-06-10 22:15:39 +12:00
|
|
|
endif()
|
2009-05-20 20:33:01 +12:00
|
|
|
|
2021-07-07 03:35:04 +12:00
|
|
|
install(TARGETS ${PROJECT_NAME} DESTINATION "${BIN_INSTALL_DIR}" RUNTIME)
|
2022-05-19 21:17:51 +12:00
|
|
|
if(UNIX)
|
2023-10-17 20:19:49 +13:00
|
|
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../docs/zint.1" DESTINATION "${MAN_INSTALL_DIR}/man1" COMPONENT doc)
|
2022-05-19 21:17:51 +12:00
|
|
|
endif()
|
2021-03-30 03:39:40 +13:00
|
|
|
|
|
|
|
if(ZINT_TEST)
|
|
|
|
add_subdirectory(tests)
|
2021-06-10 22:15:39 +12:00
|
|
|
endif()
|