2018-07-18 15:04:18 +02:00
|
|
|
set(Boost_USE_STATIC_LIBS ON)
|
2018-07-06 10:54:44 +02:00
|
|
|
|
2018-07-12 13:34:38 +02:00
|
|
|
find_package(Boost 1.62 COMPONENTS date_time REQUIRED)
|
2018-07-06 13:30:23 +02:00
|
|
|
find_package(SQLite3 REQUIRED)
|
2018-08-02 13:48:56 +02:00
|
|
|
#find_package(PkgConfig REQUIRED)
|
2018-08-08 13:36:49 +02:00
|
|
|
find_package(XLNT REQUIRED STATIC)
|
2018-08-02 13:48:56 +02:00
|
|
|
find_package(JSONCPP REQUIRED)
|
2018-08-02 13:43:54 +02:00
|
|
|
#pkg_check_modules(XLNT REQUIRED xlnt>=1.3)
|
2018-08-02 13:48:56 +02:00
|
|
|
#pkg_check_modules(JSONCPP REQUIRED jsoncpp)
|
2018-07-06 10:54:44 +02:00
|
|
|
|
2018-07-05 16:29:43 +02:00
|
|
|
set(CORE_SOURCES
|
2018-07-06 13:30:23 +02:00
|
|
|
database.cpp
|
2018-07-09 16:06:39 +02:00
|
|
|
entity.cpp
|
|
|
|
seller.cpp
|
|
|
|
article.cpp
|
2018-07-12 13:34:38 +02:00
|
|
|
sale.cpp
|
2018-07-13 13:04:19 +02:00
|
|
|
marketplace.cpp
|
2018-08-01 15:36:41 +02:00
|
|
|
excelreader.cpp
|
2018-08-02 13:06:51 +02:00
|
|
|
jsonutil.cpp
|
|
|
|
utils.cpp
|
2018-07-05 16:29:43 +02:00
|
|
|
)
|
|
|
|
|
2018-07-06 10:54:44 +02:00
|
|
|
add_library(core STATIC ${CORE_SOURCES})
|
2018-08-02 13:49:53 +02:00
|
|
|
target_link_libraries(core Boost::boost Boost::date_time sqlite3 ${XLNT_LIBRARY} ${JSONCPP_LIBRARY})
|
2018-08-01 11:27:13 +02:00
|
|
|
if (WIN32)
|
2018-08-01 15:36:41 +02:00
|
|
|
target_link_libraries(core bcrypt)
|
2018-08-01 11:27:13 +02:00
|
|
|
endif()
|
2018-07-14 15:53:01 +02:00
|
|
|
target_include_directories(core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|