Skip to content

Commit 14d8b8a

Browse files
committed
Added a cmake list for creating a static library from the sources.
1 parent 35cc046 commit 14d8b8a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Version check
2+
cmake_minimum_required (VERSION 3.0)
3+
4+
# Project
5+
project(SimpleJSON)
6+
7+
# Add files
8+
file(GLOB sources "parse/*.cpp" "stringify/*.cpp" "utility/*.cpp")
9+
10+
# Add library
11+
add_library(SimpleJSON STATIC ${sources})
12+
13+
# Compiler Options
14+
target_compile_options(SimpleJSON PRIVATE -fexceptions -std=c++14 -O2 -Wall -pedantic-errors -pedantic)

0 commit comments

Comments
 (0)