|
@@ -49,9 +49,9 @@ macro(upm_SWIG_NODE)
|
49
|
49
|
)
|
50
|
50
|
if (${V8_VERSION_MAJOR} GREATER 3)
|
51
|
51
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
52
|
|
- if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.7")
|
53
|
|
- message(FATAL_ERROR " **ERROR** GCC 4.7 or above is required to compile jsupm_${libname} ")
|
54
|
|
- endif()
|
|
52
|
+ if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.7")
|
|
53
|
+ message(FATAL_ERROR " **ERROR** GCC 4.7 or above is required to compile jsupm_${libname} ")
|
|
54
|
+ endif()
|
55
|
55
|
endif()
|
56
|
56
|
set_property (TARGET jsupm_${libname} PROPERTY CXX_STANDARD 11)
|
57
|
57
|
set_property (TARGET jsupm_${libname} PROPERTY CXX_STANDARD_REQUIRED ON)
|
|
@@ -88,10 +88,10 @@ macro(upm_SWIG_JAVA)
|
88
|
88
|
SUFFIX ".so"
|
89
|
89
|
)
|
90
|
90
|
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/libjavaupm_${libname}.so
|
91
|
|
- DESTINATION lib/java
|
|
91
|
+ DESTINATION lib/java
|
92
|
92
|
)
|
93
|
93
|
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/upm_${libname}.jar
|
94
|
|
- DESTINATION lib/java
|
|
94
|
+ DESTINATION lib/java
|
95
|
95
|
)
|
96
|
96
|
|
97
|
97
|
if (NOT DEFINED $ENV{JAVA_HOME_NATIVE})
|
|
@@ -168,15 +168,16 @@ if (SWIG_FOUND)
|
168
|
168
|
# if(BUILDSWIGJAVA)
|
169
|
169
|
# add_subdirectory (java)
|
170
|
170
|
# endif(BUILDSWIGJAVA)
|
171
|
|
-
|
|
171
|
+
|
172
|
172
|
endif()
|
173
|
173
|
|
174
|
174
|
macro(upm_module_init)
|
|
175
|
+ link_directories (${MRAA_LIBDIR})
|
175
|
176
|
add_library (${libname} SHARED ${module_src})
|
176
|
177
|
foreach (linkflag ${ARGN})
|
177
|
178
|
target_link_libraries (${libname} ${linkflag})
|
178
|
179
|
endforeach ()
|
179
|
|
- include_directories (${MRAA_INCLUDE_DIR} .)
|
|
180
|
+ include_directories (${MRAA_INCLUDE_DIRS} .)
|
180
|
181
|
target_link_libraries (${libname} ${MRAA_LIBRARIES})
|
181
|
182
|
set_target_properties(
|
182
|
183
|
${libname}
|