CUDA toolkit support added to crosscompilation toolchain.
authorAlexander Smorkalov <alexander.smorkalov@itseez.com>
Tue, 5 Feb 2013 12:04:53 +0000 (16:04 +0400)
committerAlexander Smorkalov <alexander.smorkalov@itseez.com>
Wed, 6 Feb 2013 10:43:57 +0000 (14:43 +0400)
platforms/linux/arm-gnueabi-hardfp.toolchain.cmake
platforms/linux/arm-gnueabi-softfp.toolchain.cmake

index b307b13..dc7424e 100644 (file)
@@ -34,7 +34,14 @@ set(ARM_LINUX_SYSROOT /usr/arm-linux-gnueabihf CACHE PATH "ARM cross compilation
 
 set(CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH} ${ARM_LINUX_SYSROOT})
 
+if(EXISTS ${CUDA_TOOLKIT_ROOT_DIR})
+    set(CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH} ${CUDA_TOOLKIT_ROOT_DIR})
+endif()
+
 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
 set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
 set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
 
+if (CARMA)
+    add_definitions(-DCARMA)
+endif()
index 73c14c3..0c9fb3f 100644 (file)
@@ -34,7 +34,14 @@ set(ARM_LINUX_SYSROOT /usr/arm-linux-gnueabi CACHE PATH "ARM cross compilation s
 
 set(CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH} ${ARM_LINUX_SYSROOT})
 
+if(EXISTS ${CUDA_TOOLKIT_ROOT_DIR})
+    set(CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH} ${CUDA_TOOLKIT_ROOT_DIR})
+endif()
+
 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
 set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
 set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
 
+if (CARMA)
+    add_definitions(-DCARMA)
+endif()