started with xls import

This commit is contained in:
Martin Brodbeck 2018-08-01 15:36:41 +02:00
parent 7d405234d4
commit e295c6a743
7 changed files with 73 additions and 4 deletions

View file

@ -2,6 +2,8 @@ set(Boost_USE_STATIC_LIBS ON)
find_package(Boost 1.62 COMPONENTS date_time REQUIRED)
find_package(SQLite3 REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(XLNT REQUIRED xlnt)
set(CORE_SOURCES
database.cpp
@ -10,13 +12,12 @@ set(CORE_SOURCES
article.cpp
sale.cpp
marketplace.cpp
excelreader.cpp
)
add_library(core STATIC ${CORE_SOURCES})
target_link_libraries(core Boost::boost Boost::date_time)
target_link_libraries(core Boost::boost Boost::date_time sqlite3 ${XLNT_LIBRARIES})
if (WIN32)
target_link_libraries(core sqlite3 bcrypt)
else()
target_link_libraries(core sqlite3)
target_link_libraries(core bcrypt)
endif()
target_include_directories(core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})