Skip to content

Commit 06c9e86

Browse files
committed
fix(CMakeLists.txt, build.bat): install header files (public API)
1 parent 5cbfbff commit 06c9e86

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD|DragonFly")
161161
${PROJECT_SOURCE_DIR}/rime.pc.in
162162
${PROJECT_BINARY_DIR}/rime.pc
163163
@ONLY)
164-
install(FILES src/rime_api.h DESTINATION include)
164+
file(GLOB installed_header_files ${PROJECT_SOURCE_DIR}/src/*.h)
165+
install(FILES ${installed_header_files} DESTINATION include)
165166
install(FILES ${PROJECT_BINARY_DIR}/rime.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
166167
install(FILES cmake/RimeConfig.cmake DESTINATION share/cmake/rime)
167168

appveyor.yml

-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ build_script:
3030
- .\build.bat test
3131

3232
after_build:
33-
- md build\include
34-
- copy /y src\*.h build\include
3533
- 7z a rime.zip build\bin build\lib build\include thirdparty\data\opencc
3634
- dir build /s
3735

build.bat

+3
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,9 @@ echo building librime.
234234
cmake --build build --config Release
235235
if %ERRORLEVEL% NEQ 0 goto ERROR
236236

237+
mkdir build\include
238+
copy /y src\*.h build\include
239+
237240
echo.
238241
echo ready.
239242
echo.

0 commit comments

Comments
 (0)