forked from rafagafe/json-maker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
25 lines (20 loc) · 850 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
cmake_minimum_required(VERSION 3.15)
project(json-maker
VERSION 1.1.0.0
DESCRIPTION "JSON Maker is a C library used to code JSON objects in null-terminated strings."
HOMEPAGE_URL "https://github.com/rafagafe/json-maker/blob/master/makefile"
LANGUAGES C
)
set(CMAKE_COLOR_MAKEFILE ON CACHE BOOL "ON" FORCE)
set(CMAKE_EXECUTE_PROCESS_COMMAND_ECHO STDOUT)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/static)
set(CMAKE_DEBUG_POSTFIX "-d")
option(BUILD_SAMPLES "Will add sample apps to the build process." OFF)
add_compile_options(-std=c99 -Wall -pedantic)
add_subdirectory(src)
add_subdirectory(tests)
if(BUILD_SAMPLES)
add_subdirectory(samples)
endif() #BUILD_SAMPLES