Skip to content

Commit

Permalink
fix(CMakeLists.txt, build.bat): install header files (public API)
Browse files Browse the repository at this point in the history
  • Loading branch information
lotem committed Feb 23, 2018
1 parent 5cbfbff commit 06c9e86
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 0 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 06c9e86

Please sign in to comment.