P4 to Git Change 1402945 by lmoriche@lmoriche_palamida on 2017/04/26 16:03:39
SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment Affected files ... ... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#5 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#1 add ... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/utils/libelf/CMakeLists.txt#1 add ... //depot/stg/opencl/drivers/opencl/runtime/CMakeLists.txt#1 add ... //depot/stg/opencl/drivers/opencl/runtime/device/appprofile.cpp#18 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/CMakeLists.txt#1 add ... //depot/stg/opencl/drivers/opencl/tools/bc2h/CMakeLists.txt#1 add
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
set(CMAKE_CXX_FLAGS "-std=c++11")
|
||||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../common)
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../common/win32/sys)
|
||||
|
||||
add_definitions(-DBSD_LIBELF -DUSE_MEMFILE)
|
||||
|
||||
file(GLOB sources
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.c
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.h
|
||||
)
|
||||
add_library(oclelf STATIC ${sources})
|
||||
set_target_properties(oclelf PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
Reference in New Issue
Block a user