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