2023-08-19 22:37:55 +02:00
|
|
|
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
|
|
|
|
|
|
|
|
add_subdirectory(./external)
|
|
|
|
|
|
|
|
project(solanaceae)
|
|
|
|
|
|
|
|
add_library(solanaceae_ngcext
|
|
|
|
./solanaceae/ngc_ext/ngcext.hpp
|
|
|
|
./solanaceae/ngc_ext/ngcext.cpp
|
|
|
|
)
|
2023-08-19 22:50:52 +02:00
|
|
|
target_include_directories(solanaceae_ngcext PUBLIC .)
|
2023-08-19 22:37:55 +02:00
|
|
|
target_compile_features(solanaceae_ngcext PUBLIC cxx_std_17)
|
|
|
|
target_link_libraries(solanaceae_ngcext PUBLIC
|
|
|
|
solanaceae_toxcore
|
|
|
|
solanaceae_util
|
|
|
|
)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
|
|
|
|
add_library(solanaceae_ngcft1
|
|
|
|
./solanaceae/ngc_ft1/ngcft1_file_kind.hpp
|
|
|
|
./solanaceae/ngc_ft1/ngcft1.hpp
|
|
|
|
./solanaceae/ngc_ft1/ngcft1.cpp
|
|
|
|
|
|
|
|
./solanaceae/ngc_ft1/ledbat.hpp
|
|
|
|
./solanaceae/ngc_ft1/ledbat.cpp
|
|
|
|
|
|
|
|
./solanaceae/ngc_ft1/rcv_buf.hpp
|
|
|
|
./solanaceae/ngc_ft1/rcv_buf.cpp
|
|
|
|
./solanaceae/ngc_ft1/snd_buf.hpp
|
|
|
|
./solanaceae/ngc_ft1/snd_buf.cpp
|
|
|
|
)
|
2023-08-19 22:50:52 +02:00
|
|
|
target_include_directories(solanaceae_ngcft1 PUBLIC .)
|
2023-08-19 22:37:55 +02:00
|
|
|
target_compile_features(solanaceae_ngcft1 PUBLIC cxx_std_17)
|
|
|
|
target_link_libraries(solanaceae_ngcft1 PUBLIC
|
|
|
|
solanaceae_ngcext
|
|
|
|
)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
|
|
|
|
add_library(solanaceae_sha1_ngcft1
|
2023-08-21 21:23:13 +02:00
|
|
|
# hacky deps
|
|
|
|
./solanaceae/ngc_ft1_sha1/mio.hpp
|
|
|
|
./solanaceae/ngc_ft1_sha1/file_rw_mapped.hpp
|
|
|
|
|
2023-08-19 22:37:55 +02:00
|
|
|
./solanaceae/ngc_ft1_sha1/hash_utils.hpp
|
|
|
|
./solanaceae/ngc_ft1_sha1/hash_utils.cpp
|
|
|
|
|
|
|
|
./solanaceae/ngc_ft1_sha1/ft1_sha1_info.hpp
|
|
|
|
./solanaceae/ngc_ft1_sha1/ft1_sha1_info.cpp
|
|
|
|
|
|
|
|
./solanaceae/ngc_ft1_sha1/sha1_ngcft1.hpp
|
|
|
|
./solanaceae/ngc_ft1_sha1/sha1_ngcft1.cpp
|
|
|
|
)
|
2023-08-19 22:50:52 +02:00
|
|
|
target_include_directories(solanaceae_sha1_ngcft1 PUBLIC .)
|
2023-08-19 22:37:55 +02:00
|
|
|
target_compile_features(solanaceae_sha1_ngcft1 PUBLIC cxx_std_17)
|
2023-08-21 21:32:50 +02:00
|
|
|
target_compile_definitions(solanaceae_sha1_ngcft1 PRIVATE WIN32_LEAN_AND_MEAN NOMINMAX)
|
2023-08-19 22:37:55 +02:00
|
|
|
target_link_libraries(solanaceae_sha1_ngcft1 PUBLIC
|
|
|
|
solanaceae_ngcft1
|
|
|
|
sha1::sha1
|
|
|
|
solanaceae_tox_contacts
|
|
|
|
solanaceae_message3
|
|
|
|
)
|
|
|
|
|