-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
43 lines (38 loc) · 878 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
34
35
36
37
38
39
40
41
42
43
cmake_minimum_required(VERSION 3.10)
# project name
project(are_publisher VERSION 0.1.3)
# compile time flags
option(DEBUG "Enable logging for debugging purposes" ON)
option(DISABLE_BROADCAST "Disable broadcasting during debugging" OFF)
option(RECORD_DATA "Record JSON data to data.json" OFF)
set(API_URL, "" CACHE STRING "API URL")
configure_file(config.h.in config.h)
# compiler options
add_compile_options(/W4 /WX /std:c17)
# dependencies
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
# executable
add_executable(
are_publisher
WIN32
api.c
auxiliary.c
channel.c
controls.c
delta.c
error.c
gui.c
hud.c
instance_data.c
physics.c
procedure.c
properties.c
response.c
request.c
main.c
shared_mem.c
tracked.c
)
target_include_directories(are_publisher PUBLIC ${PROJECT_BINARY_DIR})
target_link_libraries(are_publisher ${CONAN_LIBS})