Changed from C# based system to own C++ implementation using crow.
This commit is contained in:
30
CMakeLists.txt
Normal file
30
CMakeLists.txt
Normal file
@@ -0,0 +1,30 @@
|
||||
# Specify the minimum required version of CMake
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
# Set the name of the project
|
||||
project(douwco_web)
|
||||
|
||||
# Find required packages
|
||||
find_package(Crow)
|
||||
find_package(OpenSSL REQUIRED)
|
||||
find_package(ZLIB REQUIRED)
|
||||
|
||||
# Set C++ standard to C++17
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
# Add the executable
|
||||
add_executable(douwco_web
|
||||
src/main.cpp
|
||||
src/server.cpp
|
||||
)
|
||||
|
||||
# Specify include directories
|
||||
target_include_directories(douwco_web PRIVATE
|
||||
${PROJECT_SOURCE_DIR}/include
|
||||
${OPENSSL_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
target_link_libraries(douwco_web PUBLIC
|
||||
Crow::Crow
|
||||
${OPENSSL_LIBRARIES} ${ZLIB_LIBRARIES}
|
||||
)
|
||||
Reference in New Issue
Block a user