cmake stuff

This commit is contained in:
Martin Brodbeck 2025-03-18 10:06:18 +01:00
parent d6b3606bd6
commit 980f60c003
2 changed files with 4 additions and 6 deletions

View file

@ -17,7 +17,6 @@ FetchContent_Declare(
SingleApplication
GIT_REPOSITORY https://github.com/itay-grudev/SingleApplication
GIT_TAG v3.5.2
#GIT_TAG master
)
FetchContent_MakeAvailable(SingleApplication)
add_compile_definitions(QAPPLICATION_CLASS=${QAPPLICATION_CLASS})
@ -43,7 +42,6 @@ set(GUI_SOURCES
add_executable(kima2 ${GUI_SOURCES} kima2.rc)
target_include_directories(kima2 PRIVATE ${PROJECT_BINARY_DIR})
#target_include_directories(kima2 PRIVATE ${PROJECT_SOURCE_DIR}/subprojects/singleapplication/singleapplication.git)
target_link_libraries(kima2 core printer Qt::Core Qt::PrintSupport Qt::Network SingleApplication::SingleApplication)
if(WIN32)

View file

@ -9,12 +9,12 @@ else()
pkg_check_modules(LibUSB REQUIRED libusb-1.0)
endif()
set(PRINTER_SOURCES
posprinter.cpp
utils.cpp
add_library(printer STATIC)
target_sources(printer
PRIVATE
posprinter.cpp utils.cpp
)
add_library(printer STATIC ${PRINTER_SOURCES})
if(WIN32)
target_link_libraries(printer core ${LIBUSB_1_LIBRARIES})
else()