frontend(_qt)/CMakeLists.txt: add Windows rc files

This commit is contained in:
gitlost 2021-08-12 14:54:21 +01:00
parent 71af3b530e
commit a4c67174cd
3 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,6 @@
# 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)
@ -7,6 +8,10 @@ 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")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -24,6 +24,10 @@ endif()
add_executable(${PROJECT_NAME} ${zint-qt_SRCS} resources.qrc)
if(WIN32)
target_sources(${PROJECT_NAME} PRIVATE res/qtZint.rc)
endif()
target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_SOURCE_DIR}/backend" "${CMAKE_SOURCE_DIR}/backend_qt")
target_link_libraries(${PROJECT_NAME} zint QZint Qt${QT_VERSION_MAJOR}::UiTools Qt${QT_VERSION_MAJOR}::Xml Qt${QT_VERSION_MAJOR}::Gui Qt${QT_VERSION_MAJOR}::Core)