inital commit

This commit is contained in:
Damian committed 2026-10-12 23:32:28 +02:00
1 parent ebd073c803
commit 762d7776a4
36 files changed
+75891

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
# CMakeList.txt : CMake project for dlang.http, include source and define
# project specific logic here.
#
# Add source to this project's executable.
include_directories(dlang/)
add_library (dlang.http SHARED
"entry.cpp"
"dlang/src/compiler.cpp"
"dlang/src/lexer.cpp"
"dlang/src/parser.cpp"
"dlang/src/vm.cpp"
)
if (CMAKE_VERSION VERSION_GREATER 3.12)
set_property(TARGET dlang.http PROPERTY CXX_STANDARD 20)
endif()
if(WIN32)
target_link_libraries(dlang.http PRIVATE ws2_32)
endif()
target_compile_features(dlang.http PRIVATE cxx_std_20)
# Platform specific system libraries.
if(WIN32)
target_link_libraries(dlang.http PRIVATE ws2_32)
elseif(APPLE)
target_link_libraries(dlang.http PRIVATE pthread)
elseif(UNIX)
target_link_libraries(dlang.http PRIVATE dl pthread)
endif()