Browse Source

Another try for OSX.

cl-refactor
Paweł Bylica 10 years ago
parent
commit
502cec737a
  1. 3
      CMakeLists.txt
  2. 6
      libethash-cl/CMakeLists.txt

3
CMakeLists.txt

@ -427,9 +427,6 @@ if (GENERAL OR MINER)
if (ETHASHCL)
add_subdirectory(libethash-cl)
if (APPLE)
add_library(OpenCL SHARED IMPORTED)
set_property(TARGET OpenCL PROPERTY IMPORTED_LOCATION ${OpenCL_LIBRARY})
set(OpenCL_TARGET OpenCL)
else()
add_subdirectory(khronos_icd)
set(OpenCL_TARGET OpenCL_ICD)

6
libethash-cl/CMakeLists.txt

@ -23,7 +23,11 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${Boost_INCLUDE_DIRS})
include_directories(..)
add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS})
TARGET_LINK_LIBRARIES(${EXECUTABLE} ${OpenCL_TARGET} ethash)
if (APPLE)
TARGET_LINK_LIBRARIES(${EXECUTABLE} ${OpenCL_LIBRARY} ethash)
else()
TARGET_LINK_LIBRARIES(${EXECUTABLE} OpenCL_ICD ethash)
endif()
install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib )
install( FILES ${HEADERS} DESTINATION include/${EXECUTABLE} )

Loading…
Cancel
Save