46 lines
1.1 KiB
CMake
46 lines
1.1 KiB
CMake
|
# JS update 29.02.2024
|
||
|
# Odstranene nepotrebne podmienky a funkcie
|
||
|
|
||
|
cmake_minimum_required(VERSION 3.7)
|
||
|
|
||
|
# CMake instructions to build tiitls library
|
||
|
|
||
|
# Set the project name
|
||
|
project(tiitls1.3)
|
||
|
|
||
|
configure_file(./sal/tls_sal_m.xpp ./lib/tls_sal.cpp COPYONLY)
|
||
|
|
||
|
set(SRC
|
||
|
./lib/tls_cert_chain.cpp
|
||
|
./lib/tls_client_recv.cpp
|
||
|
./lib/tls_client_send.cpp
|
||
|
./lib/tls_keys_calc.cpp
|
||
|
./lib/tls_sockets.cpp
|
||
|
./lib/tls_octads.cpp
|
||
|
./lib/tls_logger.cpp
|
||
|
./lib/tls_protocol.cpp
|
||
|
./lib/tls_cacerts.cpp
|
||
|
./lib/tls_client_cert.cpp
|
||
|
./lib/tls_tickets.cpp
|
||
|
./lib/tls_x509.cpp
|
||
|
./lib/tls_sal.cpp
|
||
|
./lib/ibe/tls_bfibe.cpp
|
||
|
./lib/ibe/tls_pqibe.cpp
|
||
|
)
|
||
|
|
||
|
# Add a library
|
||
|
add_library(tiitls STATIC ${SRC})
|
||
|
|
||
|
target_include_directories(tiitls PUBLIC include)
|
||
|
target_include_directories(tiitls PUBLIC sal/miracl)
|
||
|
target_include_directories(tiitls PUBLIC sal/miracl/includes)
|
||
|
|
||
|
# CMake instructions to build client app
|
||
|
|
||
|
add_executable( client src/client.cpp )
|
||
|
|
||
|
target_link_libraries(client tiitls )
|
||
|
|
||
|
target_link_libraries(client ${PROJECT_SOURCE_DIR}/sal/miracl/core.a -loqs -lstdc++ -lws2_32)
|
||
|
|