-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·40 lines (33 loc) · 964 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
cmake_minimum_required(VERSION 2.6)
project(pyrs C)
set(CMAKE_BUILD_TYPE RelWithDebInfo)
add_definitions(
-std=gnu99
-msse4.1
-pedantic
-O3
-Wall
-Wextra
-Wcast-align
-w)
set(PYRS_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
set(3RDPARTY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty)
file(GLOB_RECURSE PYRS_SOURCES
${PYRS_SOURCE_DIR}/*.h
${PYRS_SOURCE_DIR}/*.hpp
${PYRS_SOURCE_DIR}/*.c
${PYRS_SOURCE_DIR}/*.cpp
${3RDPARTY_DIR}/json-parser/json.h
${3RDPARTY_DIR}/json-parser/json.c
${3RDPARTY_DIR}/vc_vector/vc_vector.h
${3RDPARTY_DIR}/vc_vector/vc_vector.c)
list(SORT PYRS_SOURCES)
include_directories(
${3RDPARTY_DIR}/include
${3RDPARTY_DIR}/vc_vector
${3RDPARTY_DIR}/json-parser)
add_executable(pyrs ${PYRS_SOURCES})
target_link_libraries(pyrs
${3RDPARTY_DIR}/lib/libhaywire.a
${3RDPARTY_DIR}/lib/libuv.a
python2.7)