9 lines
243 B
CMake
9 lines
243 B
CMake
find_package(LibUSB REQUIRED)
|
|
|
|
set(PRINTER_SOURCES
|
|
posprinter.cpp
|
|
)
|
|
|
|
add_library(printer STATIC ${PRINTER_SOURCES})
|
|
target_link_libraries(printer ${LIBUSB_1_LIBRARIES})
|
|
target_include_directories(printer PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) |