Compare commits
No commits in common. "c1020408316e669a23735fe60004837db3c8a627" and "f65d9809564bef289971b93566e026f99c092e09" have entirely different histories.
c102040831
...
f65d980956
2 changed files with 0 additions and 21 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -66,4 +66,3 @@ CTestTestfile.cmake
|
||||||
_deps
|
_deps
|
||||||
CMakeUserPresets.json
|
CMakeUserPresets.json
|
||||||
|
|
||||||
./build
|
|
||||||
|
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
cmake_minimum_required(VERSION 3.10)
|
|
||||||
project(cosms-core C)
|
|
||||||
|
|
||||||
set(CMAKE_C_STANDARD 11)
|
|
||||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
|
||||||
|
|
||||||
include_directories(${PROJECT_SOURCE_DIR}/include)
|
|
||||||
file(GLOB_RECURSE SRC_FILES "${PROJECT_SOURCE_DIR}/src/*.c")
|
|
||||||
|
|
||||||
add_library(cosms-core STATIC ${SRC_FILES})
|
|
||||||
add_executable(cosms-core-test ${PROJECT_SOURCE_DIR}/tests/main.c)
|
|
||||||
|
|
||||||
target_include_directories(cosms-core-test PRIVATE ${PROJECT_SOURCE_DIR}/tests)
|
|
||||||
target_link_libraries(cosms-core-test cosms-core)
|
|
||||||
|
|
||||||
if (MSVC)
|
|
||||||
target_compile_options(cosms-core PRIVATE /W4 /Zl)
|
|
||||||
else()
|
|
||||||
target_compile_options(cosms-core PRIVATE -wall -Wextra -pedantic)
|
|
||||||
endif()
|
|
||||||
Loading…
Add table
Reference in a new issue