forked from osfans/trime
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(jni): more neat way to find headers
- Loading branch information
1 parent
db1581f
commit 5bd4b60
Showing
5 changed files
with
13 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
set(Glog_FOUND TRUE) | ||
set(Glog_LIBRARY glog) | ||
get_target_property(Glog_INCLUDE_PATH glog::glog | ||
INTERFACE_INCLUDE_DIRECTORIES) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
set(YamlCpp_FOUNT TRUE) | ||
set(YamlCpp_FOUND TRUE) | ||
set(YamlCpp_LIBRARY yaml-cpp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
# install opencc headers manually | ||
# Since OpenCC doesn't include its headers in the binary dir, | ||
# we need to install them manually. | ||
file(GLOB LIBOPENCC_HEADERS | ||
OpenCC/src/*.hpp | ||
OpenCC/src/*.h | ||
"${CMAKE_BINARY_DIR}/OpenCC/src/opencc_config.h" | ||
OpenCC/src/*.hpp | ||
"${CMAKE_BINARY_DIR}/OpenCC/src/opencc_config.h" | ||
) | ||
make_directory("${CMAKE_BINARY_DIR}/include/opencc") | ||
foreach(header ${LIBOPENCC_HEADERS}) | ||
configure_file(${header} "${CMAKE_BINARY_DIR}/include/opencc" COPYONLY) | ||
endforeach() | ||
file(COPY ${LIBOPENCC_HEADERS} DESTINATION "${CMAKE_BINARY_DIR}/include/opencc") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters