Skip to content

Commit

Permalink
added get-cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty2501 committed Jun 26, 2022
1 parent 7eaccfd commit 56af26f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/gen_bind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
triple: aarch64-apple-darwin
runs-on: ${{ matrix.target.os }}
steps:
- uses: lukka/[email protected]
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
Expand Down
2 changes: 1 addition & 1 deletion crates/openjtalk-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn main() {
}

#[cfg(not(feature = "generate-bindings"))]
fn generate_bindings(include_dir: impl AsRef<Path>) {}
fn generate_bindings(#[allow(unused_variables)] include_dir: impl AsRef<Path>) {}

#[cfg(feature = "generate-bindings")]
fn generate_bindings(include_dir: impl AsRef<Path>) {
Expand Down
5 changes: 4 additions & 1 deletion crates/openjtalk-sys/openjtalk/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.16)
project(OpenJtalkSys)

include(FetchContent)
FetchContent_Declare(
Expand All @@ -7,9 +8,11 @@ FetchContent_Declare(
GIT_TAG 1.11
SOURCE_SUBDIR src)
FetchContent_MakeAvailable(openjtalk)
add_library(OpenJtalkSys src/openjtalk.cpp)
target_link_libraries(OpenJtalkSys PUBLIC openjtalk)

install(
TARGETS openjtalk
TARGETS OpenJtalkSys
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION lib)

0 comments on commit 56af26f

Please sign in to comment.