forked from phpv8/php-v8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (28 loc) · 967 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 3.1)
project(php-v8)
# NOTE: This CMake file is just for syntax highlighting in CLion
include_directories(/usr/local/opt/v8@6.6/include)
include_directories(/usr/local/opt/v8@6.6/include/libplatform)
include_directories(/usr/local/include/php)
include_directories(/usr/local/include/php/TSRM)
include_directories(/usr/local/include/php/Zend)
include_directories(/usr/local/include/php/ext)
include_directories(/usr/local/include/php/main)
include_directories(/usr/local/include/php/sapi)
add_definitions(-DV8_DEPRECATION_WARNINGS)
add_definitions(-DV8_IMMINENT_DEPRECATION_WARNINGS)
if(EXISTS "${CMAKE_SOURCE_DIR}/config.h")
add_definitions(-DHAVE_CONFIG_H)
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
include_directories(./)
include_directories(./src)
FILE(GLOB SRC src/*.cc)
FILE(GLOB HDR src/*.h)
set(SOURCE_FILES
${HDR}
${SRC}
php_v8.h
v8.cc
)
add_executable(php_v8 ${SOURCE_FILES})