diff options
Diffstat (limited to 'backend/CMakeLists.txt')
-rw-r--r-- | backend/CMakeLists.txt | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/backend/CMakeLists.txt b/backend/CMakeLists.txt index bf96baff..915d60fb 100644 --- a/backend/CMakeLists.txt +++ b/backend/CMakeLists.txt @@ -36,14 +36,28 @@ include_directories (${CMAKE_CURRENT_BINARY_DIR}) # Project source code ############################################################## add_subdirectory (src) + +if (USE_STANDALONE_GBE_COMPILER STREQUAL "true") +set(LOCAL_OCL_BITCODE_BIN ${STANDALONE_GBE_COMPILER_DIR}/beignet.bc) +set(LOCAL_OCL_HEADER_DIR ${STANDALONE_GBE_COMPILER_DIR}/include) +set(LOCAL_OCL_PCH_OBJECT ${STANDALONE_GBE_COMPILER_DIR}/beignet.pch) +endif (USE_STANDALONE_GBE_COMPILER STREQUAL "true") + set(LOCAL_OCL_BITCODE_BIN "${LOCAL_OCL_BITCODE_BIN}" PARENT_SCOPE) set(LOCAL_OCL_HEADER_DIR "${LOCAL_OCL_HEADER_DIR}" PARENT_SCOPE) set(LOCAL_OCL_PCH_OBJECT "${LOCAL_OCL_PCH_OBJECT}" PARENT_SCOPE) - set(LOCAL_GBE_OBJECT_DIR ${LOCAL_GBE_OBJECT_DIR} PARENT_SCOPE) set(LOCAL_INTERP_OBJECT_DIR ${LOCAL_INTERP_OBJECT_DIR} PARENT_SCOPE) set (GBE_BIN_GENERATER - env OCL_BITCODE_LIB_PATH=${LOCAL_OCL_BITCODE_BIN} OCL_HEADER_FILE_DIR=${LOCAL_OCL_HEADER_DIR} OCL_PCH_PATH=${LOCAL_OCL_PCH_OBJECT} LD_LIBRARY_PATH=${CMAKE_CURRENT_BINARY_DIR}/src ${CMAKE_CURRENT_BINARY_DIR}/src/gbe_bin_generater - PARENT_SCOPE) + env OCL_BITCODE_LIB_PATH=${LOCAL_OCL_BITCODE_BIN} OCL_HEADER_FILE_DIR=${LOCAL_OCL_HEADER_DIR} OCL_PCH_PATH=${LOCAL_OCL_PCH_OBJECT}) +if (USE_STANDALONE_GBE_COMPILER STREQUAL "true") +set (GBE_BIN_GENERATER + ${GBE_BIN_GENERATER} ${STANDALONE_GBE_COMPILER_DIR}/gbe_bin_generater + PARENT_SCOPE) +else (USE_STANDALONE_GBE_COMPILER STREQUAL "true") +set (GBE_BIN_GENERATER + ${GBE_BIN_GENERATER} LD_LIBRARY_PATH=${CMAKE_CURRENT_BINARY_DIR}/src ${CMAKE_CURRENT_BINARY_DIR}/src/gbe_bin_generater + PARENT_SCOPE) +endif (USE_STANDALONE_GBE_COMPILER STREQUAL "true") |