-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
31 lines (23 loc) · 857 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
26
27
28
29
30
31
cmake_minimum_required(VERSION 3.6)
project(librdsparser)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused -pedantic")
option(RDSPARSER_DISABLE_HEAP "Disable heap allocator (rdsparser_new/free)" OFF)
option(RDSPARSER_DISABLE_UNICODE "Disable unicode support" OFF)
option(RDSPARSER_DISABLE_TESTS "Disable tests" OFF)
option(RDSPARSER_DISABLE_EXAMPLES "Disable examples" OFF)
if(RDSPARSER_DISABLE_HEAP)
add_definitions(-DRDSPARSER_DISABLE_HEAP)
endif()
if(RDSPARSER_DISABLE_UNICODE)
add_definitions(-DRDSPARSER_DISABLE_UNICODE)
endif()
include_directories(librdsparser PRIVATE include)
if(NOT RDSPARSER_DISABLE_TESTS)
enable_testing()
add_subdirectory(test)
endif()
if(NOT RDSPARSER_DISABLE_EXAMPLES)
add_subdirectory(examples)
endif()
add_subdirectory(src)