Refactor CMakeLists

Closes #2471
Closes #1816
This commit is contained in:
Mohammad Nejati
2024-11-25 11:41:40 +03:30
committed by Mohammad Nejati
parent a21250d12d
commit 75e45287fb
82 changed files with 916 additions and 1359 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -7,4 +8,4 @@
# Official repository: https://github.com/boostorg/beast
#
add_subdirectory (common)
add_subdirectory(common)
+8 -15
View File
@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -7,25 +8,17 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources (include/boost/beast beast)
GroupSources (example/common common)
GroupSources (test/extras/include/boost/beast extras)
GroupSources (test/example/common "/")
add_executable (tests-example-common
${BOOST_BEAST_FILES}
${COMMON_FILES}
${EXTRAS_FILES}
Jamfile
root_certificates.cpp
server_certificate.cpp
)
server_certificate.cpp)
target_include_directories(tests-example-common
PRIVATE ${PROJECT_SOURCE_DIR})
target_link_libraries(tests-example-common
lib-asio
lib-asio-ssl
lib-beast
lib-test
)
lib-test)
set_property(TARGET tests-example-common PROPERTY FOLDER "tests")
set_target_properties(tests-example-common
PROPERTIES FOLDER "tests")