Explorar el Código

Fixed Raspberry Pi build for Raspbian.

Wei Tjong Yao hace 12 años
padre
commit
648c363ba1
Se han modificado 2 ficheros con 6 adiciones y 1 borrados
  1. 3 0
      CMakeLists.txt
  2. 3 1
      ThirdParty/SDL/CMakeLists.txt

+ 3 - 0
CMakeLists.txt

@@ -18,6 +18,9 @@ if (COMMAND cmake_policy)
     cmake_policy (SET CMP0003 NEW)
 endif ()
 
+# Add cmake modules search path
+set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
+
 # Enable 64-bit build. Disabled by default. On Visual Studio, depends on the generator used
 if (NOT MSVC)
     # set (ENABLE_64BIT 1)

+ 3 - 1
ThirdParty/SDL/CMakeLists.txt

@@ -41,7 +41,9 @@ elseif (ANDROID)
 else ()
     # On Linux, make sure development libraries exist, and use their include file directories  
     if (RASPI)
-        #TODO: find_package (BCM_VC REQUIRED)
+        find_package (BCM_VC REQUIRED)
+        include_directories (${BCM_VC_INCLUDE_DIR})
+        link_directories (${BCM_VC_LIBRARIES})
         set (LINK_LIBS_ONLY bcm_host)
         file (GLOB VIDEO_DRIVER_C_FILES src/video/raspi/*.c)
     else ()