-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
53 lines (43 loc) · 1007 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
cmake_minimum_required(VERSION 3.8)
project(AQUACPPMINERGPU)
# Aquahash
add_subdirectory(aquahash)
# Curl
#set(HTTP_ONLY ON CACHE BOOL "")
#set(CMAKE_USE_OPENSSL OFF CACHE BOOL "")
#set(BUILD_CURL_EXE OFF CACHE BOOL "")
#set(CURL_STATICLIB ON CACHE BOOL "")
#set(CURL_ZLIB OFF CACHE BOOL "")
#set(CMAKE_USE_LIBSSH2 OFF CACHE BOOL "")
#add_subdirectory(curl)
# RapidJSON
add_subdirectory(rapidjson)
# OpenCL
find_package(OpenCL REQUIRED)
# Threads
find_package(Threads REQUIRED)
# OpenSSL
find_package(OpenSSL REQUIRED)
# Curl
find_package(CURL REQUIRED)
file(GLOB SRC src/*.cpp)
file(GLOB HDR src/*.cpp)
add_executable(aquaminer-gpu
${SRC} ${HDR})
target_compile_definitions(aquaminer-gpu
PUBLIC
-DARCH="Linux64")
target_link_libraries(aquaminer-gpu
PUBLIC
aquahash
${OpenCL_LIBRARIES}
Threads::Threads
${CURL_LIBRARIES}
gmp
OpenSSL::SSL)
target_include_directories(aquaminer-gpu
PUBLIC
${CURL_INCLUDE_DIRS}
aquahash/include
rapidjson/include
${OpenCL_INCLUDE_DIRS})