forked from oystedal/filestreamer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
36 lines (26 loc) · 979 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
cmake_minimum_required (VERSION 3.0)
project (Filestreamer)
SET(CMAKE_BUILD_TYPE "Debug")
include_directories("${PROJECT_SOURCE_DIR}/src/include/")
SET(CMAKE_C_FLAGS "-std=gnu99 -O3")
SET(CMAKE_C_FLAGS_DEBUG "-std=gnu99 -g -Wall -Werror")
SET(CMAKE_CXX_FLAGS "-fpermissive -O3")
SET(CMAKE_CXX_FLAGS_DEBUG "-g -Wall -Werror")
include_directories("lib/libneat")
link_directories("${PROJECT_SOURCE_DIR}/lib/libneat")
add_executable(stream_socket
"src/file_reader.c"
"src/server_sockets.c"
"src/main.c"
)
add_executable(stream_neat
"src/file_reader.c"
"src/server_neat.c"
"src/main.c"
)
target_compile_definitions(stream_neat PRIVATE WITH_NEAT)
target_link_libraries(stream_neat libneat.so)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/lib/libneat/libneat.so ${CMAKE_CURRENT_BINARY_DIR} COPYONLY)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/lib/libneat/libneat.so.0 ${CMAKE_CURRENT_BINARY_DIR} COPYONLY)
enable_testing()
add_subdirectory(test)