feat: add CMAKEList.txt to help CLion
This commit is contained in:
parent
77f73deca6
commit
455db02154
22
CMakeLists.txt
Normal file
22
CMakeLists.txt
Normal file
@ -0,0 +1,22 @@
|
||||
cmake_minimum_required(VERSION 3.7)
|
||||
PROJECT(pdlib)
|
||||
|
||||
SET(PDLIB_VERSION 0.1.0)
|
||||
|
||||
file(GLOB_RECURSE SRC_LIST FOLLOW_SYMLINKS src/*.c)
|
||||
set(SOURCE_FILES pdlib.cc php_pdlib.h)
|
||||
|
||||
add_executable(pdlib ${SRC_LIST} ${SOURCE_FILES})
|
||||
|
||||
# Define path to php-src, change accordingly
|
||||
set(PHP_SOURCE ../../)
|
||||
# Import php sources
|
||||
include_directories(
|
||||
${PHP_SOURCE}
|
||||
${PHP_SOURCE}/main
|
||||
${PHP_SOURCE}/Zend
|
||||
${PHP_SOURCE}/TSRM
|
||||
${PHP_SOURCE}/ext
|
||||
${PHP_SOURCE}/sapi
|
||||
${PHP_SOURCE}/pear
|
||||
)
|
Loading…
Reference in New Issue
Block a user