use pkg-config if not windows
This commit is contained in:
parent
01a2a5e0e0
commit
e0e0f641e2
2 changed files with 16 additions and 8 deletions
|
@ -2,11 +2,14 @@ set(Boost_USE_STATIC_LIBS ON)
|
|||
|
||||
find_package(Boost 1.62 COMPONENTS date_time REQUIRED)
|
||||
find_package(SQLite3 REQUIRED)
|
||||
#find_package(PkgConfig REQUIRED)
|
||||
if (MINGW)
|
||||
find_package(XLNT REQUIRED STATIC)
|
||||
find_package(JSONCPP REQUIRED)
|
||||
#pkg_check_modules(XLNT REQUIRED xlnt>=1.3)
|
||||
#pkg_check_modules(JSONCPP REQUIRED jsoncpp)
|
||||
else (MINGW)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(XLNT REQUIRED xlnt>=1.3)
|
||||
pkg_check_modules(JSONCPP REQUIRED jsoncpp)
|
||||
endif (MINGW)
|
||||
|
||||
set(CORE_SOURCES
|
||||
database.cpp
|
||||
|
|
|
@ -2,7 +2,12 @@ set(Boost_USE_STATIC_LIBS ON)
|
|||
|
||||
find_package(Boost 1.62 REQUIRED)
|
||||
|
||||
if (MINGW)
|
||||
find_package(LibUSB REQUIRED)
|
||||
else (MINGW)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(LIBUSB REQUIRED libusb-1.0)
|
||||
endif (MINGW)
|
||||
|
||||
set(PRINTER_SOURCES
|
||||
posprinter.cpp
|
||||
|
|
Loading…
Reference in a new issue