Browse Source

Fix some cmake problems.

cl-refactor
Paweł Bylica 10 years ago
parent
commit
cb438988b4
  1. 2
      ethminer/CMakeLists.txt
  2. 8
      exp/CMakeLists.txt

2
ethminer/CMakeLists.txt

@ -9,6 +9,7 @@ if (JSONRPC)
include_directories(BEFORE ${JSONCPP_INCLUDE_DIRS})
include_directories(${JSON_RPC_CPP_INCLUDE_DIRS})
endif()
include_directories(${OpenCL_INCLUDE_DIRS})
set(EXECUTABLE ethminer)
@ -40,4 +41,3 @@ if (APPLE)
else()
eth_install_executable(${EXECUTABLE})
endif()

8
exp/CMakeLists.txt

@ -6,6 +6,7 @@ aux_source_directory(. SRC_LIST)
include_directories(BEFORE ${JSONCPP_INCLUDE_DIRS})
include_directories(BEFORE ..)
include_directories(${DB_INCLUDE_DIRS})
include_directories(${OpenCL_INCLUDE_DIRS})
set(EXECUTABLE exp)
@ -27,11 +28,6 @@ target_link_libraries(${EXECUTABLE} p2p)
if (ETHASHCL)
target_link_libraries(${EXECUTABLE} ethash-cl)
target_link_libraries(${EXECUTABLE} ethash)
target_link_libraries(${EXECUTABLE} OpenCL)
target_link_libraries(${EXECUTABLE} ${OpenCL_LIBRARIES})
endif()
install( TARGETS ${EXECUTABLE} DESTINATION bin)

Loading…
Cancel
Save