forked from norberttech/php-uamqp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
64 lines (53 loc) · 1.86 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
##################################################################
# NOTE: This CMake file is just for syntax highlighting in CLion #
##################################################################
cmake_minimum_required(VERSION 3.6)
project(php-uamqp)
message("Begin cmaking of PHP extension ...")
# -std=gnu99
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ggdb -O0 -Wall -std=gnu99 -fvisibility=hidden")
set(ENV{PROJECT_ROOT} "${CMAKE_HOME_DIRECTORY}")
include_directories(
ext/php-build/src
ext/php-build/src/main
ext/php-build/src/Zend
ext/php-build/src/TSRM
ext/php-build/src/ext
ext/php-build/src/sapi
ext/deps/azure-uamqp-c/deps/azure-macro-utils-c/inc
ext/deps/azure-uamqp-c/deps/azure-macro-utils-c/src
ext/deps/azure-uamqp-c/deps/umock-c/inc
ext/deps/azure-uamqp-c/deps/umock-c/src
ext/deps/azure-uamqp-c/deps/azure-c-shared-utility/src
ext/deps/azure-uamqp-c/deps/azure-c-shared-utility/inc
ext/deps/azure-uamqp-c/src
ext/deps/azure-uamqp-c/inc
)
FILE(GLOB KernelHeaders ./kernel/*.h)
FILE(GLOB KernelSources ./kernel/*.c)
set(SOURCE_FILES
ext/uamqp.c
ext/php_uamqp.h
ext/src/php/php_uamqp_connection.c
ext/src/php/php_uamqp_connection.h
ext/src/php/php_uamqp_exception.c
ext/src/php/php_uamqp_exception.h
ext/src/php/php_uamqp_destination.c
ext/src/php/php_uamqp_destination.h
ext/src/php/php_uamqp_message.c
ext/src/php/php_uamqp_message.h
ext/src/php/php_uamqp_producer.c
ext/src/php/php_uamqp_producer.h
ext/src/php/php_uamqp_consumer.c
ext/src/php/php_uamqp_consumer.h
ext/src/uamqp/uamqp.c
ext/src/uamqp/uamqp.h
${KernelHeaders}
${KernelSources}
)
if(EXISTS "$ENV{PROJECT_ROOT}/ext/config.h")
set(SOURCE_FILES "${SOURCE_FILES};ext/config.h")
endif()
add_library(uamqp ${SOURCE_FILES})
message("End cmaking of PHP extension ...")