1 # Raspberry Pi target 2 message("*** Using Raspberry Pi") 3 set(DEQP_TARGET_NAME "Raspberry Pi") 4 set(DEQP_SUPPORT_GLES2 ON) 5 set(DEQP_SUPPORT_VG ON) 6 set(DEQP_SUPPORT_EGL ON) 7 8 find_path(SYSTEM_INCLUDE bcm_host.h PATHS /usr/include /opt/vc/include) 9 include_directories( 10 ${SYSTEM_INCLUDE} 11 ${SYSTEM_INCLUDE}/interface/vcos/pthreads 12 ) 13 14 # GLESv2 lib 15 find_library(GLES2_LIBRARY GLESv2 PATHS /usr/lib /opt/vc/lib) 16 set(DEQP_GLES2_LIBRARIES ${GLES2_LIBRARY}) 17 18 # OpenVG lib 19 find_library(OPENVG_LIBRARY OpenVG PATHS /usr/lib /opt/vc/lib) 20 set(DEQP_VG_LIBRARIES ${OPENVG_LIBRARY}) 21 22 # EGL lib 23 find_library(EGL_LIBRARY EGL PATHS /usr/lib /opt/vc/lib) 24 set(DEQP_EGL_LIBRARIES ${EGL_LIBRARY}) 25 26 # Platform libs 27 find_library(BCM_HOST_LIBRARY NAMES bcm_host PATHS /usr/lib /opt/vc/lib) 28 set(DEQP_PLATFORM_LIBRARIES ${DEQP_PLATFORM_LIBRARIES} ${BCM_HOST_LIBRARY} ${GLES2_LIBRARY} ${EGL_LIBRARY}) 29 30 get_filename_component(SYSLIB_PATH ${BCM_HOST_LIBRARY} PATH) 31 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath-link,${SYSLIB_PATH}") 32 33 # Platform sources 34 set(TCUTIL_PLATFORM_SRCS 35 raspi/tcuRaspiPlatform.cpp 36 raspi/tcuRaspiPlatform.hpp 37 tcuMain.cpp 38 ) 39