Commit a75b29ad408469cb0ecf12c5aba449a8e58ac8b8
1 parent
60d4fa47
brakująca zależność cmake dla java-deb i drobiazgi
Showing
3 changed files
with
21 additions
and
4 deletions
morfeusz/cli/cli.cpp
... | ... | @@ -16,7 +16,7 @@ namespace morfeusz { |
16 | 16 | UTF8; |
17 | 17 | #endif |
18 | 18 | |
19 | - static inline void printCLIUsage(int argc, const char** argv, MorfeuszProcessorType processorType, ezOptionParser& opt, ostream& out) { | |
19 | + static inline void printCLIUsage(int , const char** , MorfeuszProcessorType , ezOptionParser& opt, ostream& out) { | |
20 | 20 | string usage; |
21 | 21 | opt.getUsage(usage); |
22 | 22 | out << usage; |
... | ... |
morfeusz/wrappers/java/CMakeLists.txt
1 | 1 | |
2 | -set (JMORFEUSZ_VERSION "0.1.0") | |
2 | +set (JMORFEUSZ_VERSION "${Morfeusz_LIB_VERSION}") | |
3 | 3 | find_package(JNI REQUIRED) |
4 | 4 | include(UseJava) |
5 | 5 | find_package(Java REQUIRED) |
... | ... | @@ -93,6 +93,8 @@ add_custom_target(package-java |
93 | 93 | DEPENDS jmorfeusz package-javadoc jmorfeusz-copy-readme libjmorfeusz) |
94 | 94 | |
95 | 95 | if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") |
96 | - add_custom_target(java-deb | |
97 | - COMMAND "${PROJECT_SOURCE_DIR}/createJavaDeb.sh" "${CMAKE_CURRENT_BINARY_DIR}" "${Morfeusz_DEB_VERSION}" "${ARCHITECTURE}" "${TARGET_DIR}") | |
96 | + add_custom_target(java-deb | |
97 | + COMMAND "${PROJECT_SOURCE_DIR}/createJavaDeb.sh" "${CMAKE_CURRENT_BINARY_DIR}" "${Morfeusz_DEB_VERSION}" "${ARCHITECTURE}" "${TARGET_DIR}" | |
98 | + DEPENDS jmorfeusz libjmorfeusz | |
99 | + ) | |
98 | 100 | endif () |
... | ... |
toolchains/Toolchain-Linux-native.cmake
0 → 100644
1 | +### A toolchain for building Morfeusz for Linux without cross-compilation | |
2 | + | |
3 | +set (CMAKE_SYSTEM_NAME Linux) | |
4 | +set (CMAKE_SYSTEM_VERSION 1) | |
5 | +set (CMAKE_C_COMPILER gcc) | |
6 | +set (CMAKE_CXX_COMPILER g++) | |
7 | + | |
8 | +set (CMAKE_SYSTEM_PROCESSOR "${CMAKE_HOST_SYSTEM_PROCESSOR}") | |
9 | + | |
10 | +# adjust the default behaviour of the FIND_XXX() commands: | |
11 | +# search headers and libraries in the target environment, search | |
12 | +# programs in the host environment | |
13 | +set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM BOTH) | |
14 | +set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH) | |
15 | +set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH) | |
... | ... |