32 lines
805 B
CMake
32 lines
805 B
CMake
# 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() |