diff --git a/CMakeLists.txt b/CMakeLists.txt index ae21ce520d..48836af1e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -161,7 +161,8 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD|DragonFly") ${PROJECT_SOURCE_DIR}/rime.pc.in ${PROJECT_BINARY_DIR}/rime.pc @ONLY) - install(FILES src/rime_api.h DESTINATION include) + file(GLOB installed_header_files ${PROJECT_SOURCE_DIR}/src/*.h) + install(FILES ${installed_header_files} DESTINATION include) install(FILES ${PROJECT_BINARY_DIR}/rime.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig) install(FILES cmake/RimeConfig.cmake DESTINATION share/cmake/rime) diff --git a/appveyor.yml b/appveyor.yml index 9beb42b740..1bfef81e2d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -30,8 +30,6 @@ build_script: - .\build.bat test after_build: - - md build\include - - copy /y src\*.h build\include - 7z a rime.zip build\bin build\lib build\include thirdparty\data\opencc - dir build /s diff --git a/build.bat b/build.bat index 0407e849b1..9070729e6a 100644 --- a/build.bat +++ b/build.bat @@ -234,6 +234,9 @@ echo building librime. cmake --build build --config Release if %ERRORLEVEL% NEQ 0 goto ERROR +mkdir build\include +copy /y src\*.h build\include + echo. echo ready. echo.