代码拉取完成,页面将自动刷新
project(php_pinyin)
# SET(CMAKE_C_COMPILER "C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin/cl.exe")
add_definitions(
"-D _CRT_SECURE_NO_DEPRECATE"
"-D WIN32"
# "-D _DEBUG"
"-D _WINDOWS"
"-D _USRDLL"
"-D PHP_PINYIN_EXPORTS"
"-D COMPILE_DL_PINYIN"
"-D PHP_WIN32"
"-D ZEND_WIN32"
"-D ZTS=1"
"-D ZEND_DEBUG=0"
"-D _USE_32BIT_TIME_T=1"
"-D _UNICODE"
"-D UNICODE"
)
set(PHPSDK "C:/php/SDK")
link_directories(
# "${PHPSDK}/lib"
# "D:/wamp/bin/php/php5.3.10/dev"
)
include_directories(
# "${PHPSDK}/include"
# "${PHPSDK}/include/main"
# "${PHPSDK}/include/TSRM"
# "${PHPSDK}/include/win32"
# "${PHPSDK}/include/Zend"
)
set(
PY_LIST
./src/pinyin.c
./src/hashtable.c
./src/py_pinyin.c
)
set(
PY_TEST
./src/hashtable.c
./src/py_pinyin.c
./src/test_pinyin.c
)
# add_library(php_pinyin SHARED ${PY_LIST})
# target_link_libraries(php_pinyin php5ts)
add_executable(pinyin_test ${PY_TEST})
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。