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

@ -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()