forked from flightaware/mdsplib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
33 lines (26 loc) · 890 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
32
33
cmake_minimum_required(VERSION 3.1...3.15)
project(mdsplib LANGUAGES C)
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set(CMAKE_BUILD_TYPE "Release" CACHE
STRING "Choose the type of build." FORCE)
endif()
IF (MSVC)
# MSVC is logs many inline warnings
add_definitions("/wd4710")
add_definitions("/wd4711")
add_definitions("/wd4068")
add_definitions("/wd4109")
ENDIF()
list(APPEND SRCS src/antoi.c)
list(APPEND SRCS src/charcmp.c)
list(APPEND SRCS src/decode_metar.c)
list(APPEND SRCS src/decode_metar_remark.c)
list(APPEND SRCS src/fracpart.c)
list(APPEND SRCS src/local.h)
list(APPEND SRCS src/metar_structs.h)
list(APPEND SRCS src/print_decoded_metar.c)
list(APPEND SRCS src/stspack2.c)
list(APPEND SRCS src/stspack3.c)
add_library(metar STATIC ${SRCS})
add_executable(metar_test src/metar_test.c)
target_link_libraries(metar_test PRIVATE metar)