cmake stuff
This commit is contained in:
parent
d6b3606bd6
commit
980f60c003
2 changed files with 4 additions and 6 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue