1 Star 0 Fork 0

foyou/pilk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CMakeLists.txt 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
foyou 提交于 2022-01-04 13:57 . update environment
cmake_minimum_required(VERSION 3.21)
project(silk_voice VERSION 1.0.0)
# 设置编译类型,也可在CLION设置中设置
# set(CMAKE_BUILD_TYPE Release)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED True)
# Python相关
set(PYTHON_HOME "C:/Users/foyou/AppData/Local/Programs/Python/Python_d310")
include_directories(${PYTHON_HOME}/include)
link_directories(${PYTHON_HOME}/libs)
# silk
include_directories(src/interface)
include_directories(src/SKP_SILK_SRC)
add_library(pilk SHARED src/pilkmodule.c)
add_subdirectory(src/SKP_SILK_SRC)
target_link_libraries(pilk PUBLIC SKP_Silk_SDK)
# 设置动态库属性
SET_TARGET_PROPERTIES(
pilk PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/dev
PREFIX ""
OUTPUT_NAME "_pilk_d"
SUFFIX ".pyd"
)
if (CMAKE_BUILD_TYPE MATCHES Debug)
message(" ")
message("CMAKE IN DEBUG MODE")
message(" ")
elseif (CMAKE_BUILD_TYPE MATCHES Release)
message(" ")
message("CMAKE IN RELEASE MODE")
message(" ")
endif ()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/lemisky/pilk.git
git@gitee.com:lemisky/pilk.git
lemisky
pilk
pilk
main

搜索帮助