|
|
@ -14,6 +14,8 @@ if (WIN32)
|
|
|
|
set(SFML_INCLUDE_DIR ${SFML_ROOT}/include)
|
|
|
|
set(SFML_INCLUDE_DIR ${SFML_ROOT}/include)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set(OPENGL_LIBRARIES "/opt/amdgpu-pro/lib/x86_64-linux-gnu")
|
|
|
|
|
|
|
|
|
|
|
|
set(SFML_COMPONENTS graphics window system network audio)
|
|
|
|
set(SFML_COMPONENTS graphics window system network audio)
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
find_package(SFML 2.1 COMPONENTS ${SFML_COMPONENTS} REQUIRED)
|
|
|
|
find_package(SFML 2.1 COMPONENTS ${SFML_COMPONENTS} REQUIRED)
|
|
|
@ -36,8 +38,8 @@ endif()
|
|
|
|
|
|
|
|
|
|
|
|
# beignet only supports EGL and not GLX for the cl_khr_gl_sharing extension
|
|
|
|
# beignet only supports EGL and not GLX for the cl_khr_gl_sharing extension
|
|
|
|
if (UNIX)
|
|
|
|
if (UNIX)
|
|
|
|
find_package(EGL REQUIRED)
|
|
|
|
# find_package(EGL REQUIRED)
|
|
|
|
message(STATUS "EGL found: ${EGL_FOUND}")
|
|
|
|
#message(STATUS "EGL found: ${EGL_FOUND}")
|
|
|
|
endif (UNIX)
|
|
|
|
endif (UNIX)
|
|
|
|
|
|
|
|
|
|
|
|
# Include the directories for the main program, GL, CL and SFML's headers
|
|
|
|
# Include the directories for the main program, GL, CL and SFML's headers
|
|
|
@ -45,7 +47,7 @@ include_directories(${SFML_INCLUDE_DIR})
|
|
|
|
include_directories(${OpenCL_INCLUDE_DIRS})
|
|
|
|
include_directories(${OpenCL_INCLUDE_DIRS})
|
|
|
|
include_directories(${OpenGL_INCLUDE_DIRS})
|
|
|
|
include_directories(${OpenGL_INCLUDE_DIRS})
|
|
|
|
if (UNIX)
|
|
|
|
if (UNIX)
|
|
|
|
include_directories(${EGL_INCLUDE_DIRS})
|
|
|
|
# include_directories(${EGL_INCLUDE_DIRS})
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
include_directories(include)
|
|
|
|
include_directories(include)
|
|
|
|
|
|
|
|
|
|
|
@ -127,7 +129,7 @@ target_link_libraries (${PNAME} ${OpenCL_LIBRARY})
|
|
|
|
target_link_libraries (${PNAME} ${OPENGL_LIBRARIES})
|
|
|
|
target_link_libraries (${PNAME} ${OPENGL_LIBRARIES})
|
|
|
|
|
|
|
|
|
|
|
|
if (UNIX)
|
|
|
|
if (UNIX)
|
|
|
|
target_link_libraries (${PNAME} ${EGL_LIBRARIES})
|
|
|
|
# target_link_libraries (${PNAME} ${EGL_LIBRARIES})
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
if (WIN32)
|
|
|
|
if (WIN32)
|
|
|
|