fix using pkg-config
This commit is contained in:
parent
e0e0f641e2
commit
756a59aa6b
2 changed files with 13 additions and 6 deletions
|
@ -24,8 +24,11 @@ set(CORE_SOURCES
|
|||
)
|
||||
|
||||
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 Boost::boost Boost::date_time sqlite3 ${XLNT_LIBRARY} ${JSONCPP_LIBRARY})
|
||||
target_link_libraries(core bcrypt)
|
||||
else()
|
||||
target_link_libraries(core Boost::boost Boost::date_time sqlite3 ${XLNT_LIBRARIES} ${JSONCPP_LIBRARIES})
|
||||
endif()
|
||||
|
||||
target_include_directories(core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue