mirror of
https://github.com/danog/ton.git
synced 2024-11-30 04:29:19 +01:00
22 lines
425 B
CMake
22 lines
425 B
CMake
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
|
|
|
|
set(COMMON_SOURCE
|
|
checksum.h
|
|
errorcode.h
|
|
status.h
|
|
io.hpp
|
|
|
|
errorlog.h
|
|
errorlog.cpp
|
|
)
|
|
|
|
|
|
add_library(common STATIC ${COMMON_SOURCE})
|
|
|
|
target_include_directories(common PUBLIC
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>/..
|
|
${OPENSSL_INCLUDE_DIR}
|
|
)
|
|
target_link_libraries(common PRIVATE tdutils ton_crypto )
|