zint-barcode-generator/frontend/CMakeLists.txt

29 lines
746 B
CMake
Raw Normal View History

# 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 :
2008-09-18 10:44:52 -04:00
project(zint_frontend)
2021-07-06 11:35:04 -04:00
set(${PROJECT_NAME}_SRCS main.c)
2021-07-06 11:35:04 -04:00
add_executable(${PROJECT_NAME} ${zint_frontend_SRCS})
2008-09-18 10:44:52 -04:00
if(WIN32)
target_sources(${PROJECT_NAME} PRIVATE zint.rc)
endif()
2021-07-06 11:35:04 -04:00
target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_SOURCE_DIR}/backend")
2008-09-18 10:44:52 -04:00
2021-07-06 11:35:04 -04:00
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "zint")
2008-09-24 04:59:39 -04:00
2021-07-06 11:35:04 -04:00
target_link_libraries(${PROJECT_NAME} zint)
if(NOT HAVE_GETOPT)
2021-07-06 11:35:04 -04:00
target_link_libraries(${PROJECT_NAME} zint_bundled_getopt)
endif()
2021-07-06 11:35:04 -04:00
install(TARGETS ${PROJECT_NAME} DESTINATION "${BIN_INSTALL_DIR}" RUNTIME)
if(ZINT_TEST)
add_subdirectory(tests)
endif()