Compare commits
No commits in common. "c4769a637f90dd7c68a5d78d4f2bb6de459c4eae" and "85c2358714a72e1b1b523ba5637717a2543f1bcd" have entirely different histories.
c4769a637f
...
85c2358714
1 changed files with 0 additions and 25 deletions
|
|
@ -1,25 +0,0 @@
|
|||
cmake_minimum_required(VERSION 3.10)
|
||||
project(qnet C)
|
||||
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||
|
||||
file(GLOB_RECURSE SRC_FILES "${PROJECT_SOURCE_DIR}/src/*.c")
|
||||
add_library(qnet STATIC ${SRC_FILES})
|
||||
target_include_directories(qnet PUBLIC ${PROJECT_SOURCE_DIR}/include)
|
||||
|
||||
if (WIN32)
|
||||
target_link_libraries(qnet PRIVATE ws2_32)
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
target_compile_options(qnet PRIVATE /W4)
|
||||
else()
|
||||
target_compile_options(qnet PRIVATE -Wall -Wextra -pedantic)
|
||||
endif()
|
||||
|
||||
file(GLOB_RECURSE SRC_TEST_FILES "${PROJECT_SOURCE_DIR}/tests/*.c")
|
||||
add_executable(qnet-test ${SRC_TEST_FILES})
|
||||
|
||||
target_include_directories(qnet-test PRIVATE ${PROJECT_SOURCE_DIR}/tests)
|
||||
target_link_libraries(qnet-test qnet)
|
||||
Loading…
Add table
Reference in a new issue