mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-05 16:07:42 +00:00
25 lines
654 B
CMake
25 lines
654 B
CMake
find_path(
|
|
RANDOMX_INCLUDE_DIR
|
|
NAMES randomx.h
|
|
PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS"
|
|
PATH_SUFFIXES "include"
|
|
NO_DEFAULT_PATH
|
|
)
|
|
|
|
find_path(RANDOMX_INCLUDE_DIR NAMES randomx.h)
|
|
|
|
find_library(
|
|
RANDOMX_LIBRARY
|
|
NAMES librandomx.a randomx librandomx
|
|
PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS"
|
|
PATH_SUFFIXES "lib"
|
|
NO_DEFAULT_PATH
|
|
)
|
|
|
|
find_library(RANDOMX_LIBRARY NAMES librandomx.a randomx librandomx)
|
|
|
|
set(RANDOMX_LIBRARIES ${RANDOMX_LIBRARY})
|
|
set(RANDOMX_INCLUDE_DIRS ${RANDOMX_INCLUDE_DIR})
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(RANDOMX DEFAULT_MSG RANDOMX_LIBRARY RANDOMX_INCLUDE_DIR)
|