mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
use static boost libraries for build
This commit is contained in:
parent
3d1ad12581
commit
0e43f6d504
1 changed files with 16 additions and 5 deletions
|
|
@ -10,31 +10,42 @@ set(IP_ENABLE_DOCTEST OFF)
|
|||
if(MSVC)
|
||||
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
# Define WIN64 or WIN32 for TVPaint SDK
|
||||
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
message("64bit")
|
||||
add_definitions(-DWIN64)
|
||||
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||
message("32bit")
|
||||
add_definitions(-DWIN32)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# TODO better options
|
||||
option(BOOST_ROOT "Path to root of Boost" "")
|
||||
|
||||
option(OPENSSL_INCLUDE "OpenSSL include path" "")
|
||||
option(OPENSSL_INCLUDE "OpenSSL include path" "")
|
||||
option(OPENSSL_LIB_DIR "OpenSSL lib path" "")
|
||||
|
||||
option(WEBSOCKETPP_INCLUDE "Websocketpp include path" "")
|
||||
option(WEBSOCKETPP_LIB_DIR "Websocketpp lib path" "")
|
||||
|
||||
option(JSONRPCPP_INCLUDE "Jsonrpcpp include path" "")
|
||||
|
||||
find_package(Boost 1.72.0 COMPONENTS random)
|
||||
# Use static boost libraries
|
||||
set(Boost_USE_STATIC_LIBS ON)
|
||||
|
||||
find_package(Boost COMPONENTS random chrono date_time regex REQUIRED)
|
||||
|
||||
include_directories(
|
||||
"${TVPAINT_SDK_INCLUDE}"
|
||||
"${OPENSSL_INCLUDE}"
|
||||
"${WEBSOCKETPP_INCLUDE}"
|
||||
"${JSONRPCPP_INCLUDE}"
|
||||
"${Boost_INCLUDE_DIR}"
|
||||
"${Boost_INCLUDE_DIRS}"
|
||||
)
|
||||
|
||||
link_directories(
|
||||
"${OPENSSL_LIB_DIR}"
|
||||
"${WEBSOCKETPP_LIB_DIR}"
|
||||
"${Boost_LIBRARY_DIRS}"
|
||||
)
|
||||
|
||||
add_library(jsonrpcpp INTERFACE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue