kima2/src/core/CMakeLists.txt

28 lines
734 B
CMake

set(Boost_USE_STATIC_LIBS ON)
find_package(Boost 1.62 COMPONENTS date_time REQUIRED)
find_package(SQLite3 REQUIRED)
#find_package(PkgConfig REQUIRED)
find_package(XLNT REQUIRED)
find_package(JSONCPP REQUIRED)
#pkg_check_modules(XLNT REQUIRED xlnt>=1.3)
#pkg_check_modules(JSONCPP REQUIRED jsoncpp)
set(CORE_SOURCES
database.cpp
entity.cpp
seller.cpp
article.cpp
sale.cpp
marketplace.cpp
excelreader.cpp
jsonutil.cpp
utils.cpp
)
add_library(core STATIC ${CORE_SOURCES})
target_link_libraries(core Boost::boost Boost::date_time sqlite3 ${XLNT_LIBRARY} ${JSONCPP_LIBRARY})
if (WIN32)
target_link_libraries(core bcrypt)
endif()
target_include_directories(core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})