15 changed files with 112 additions and 156 deletions
@ -1,110 +0,0 @@ |
|||
# search for and configure dependencies |
|||
|
|||
# deprecated. DO NOT ADD any new stuff here. Proper dependency fetching is done in EthDependencies.cmake |
|||
|
|||
|
|||
if("${TARGET_PLATFORM}" STREQUAL "w64") |
|||
# set(MINIUPNPC_LS /usr/x86_64-w64-mingw32/lib/libminiupnpc.a) |
|||
else() |
|||
|
|||
find_path( PYTHON_ID pyconfig.h |
|||
${PYTHON_INCLUDE_DIR} |
|||
/usr/include/python2.7 |
|||
/usr/local/include/python2.7 |
|||
) |
|||
if ( PYTHON_ID STREQUAL "PYTHON_ID-NOTFOUND" ) |
|||
message(STATUS "Failed to find the Python-2.7 headers") |
|||
else () |
|||
message(STATUS "Found Python-2.7 Headers: ${PYTHON_ID}") |
|||
|
|||
# Check for accessory dev libraries leveldb and miniupnpc |
|||
find_library( PYTHON_LS NAMES python2.7 |
|||
PATHS |
|||
/usr/lib |
|||
/usr/local/lib |
|||
/opt/local/lib |
|||
/usr/lib/*/ |
|||
) |
|||
if ( PYTHON_LS STREQUAL "PYTHON_LS-NOTFOUND" ) |
|||
message(STATUS "Failed to find the Python-2.7 Library!") |
|||
set(PYTHON_ID) |
|||
set(PYTHON_LS) |
|||
else () |
|||
message(STATUS "Found Python-2.7 Library: ${PYTHON_LS}") |
|||
add_definitions(-DETH_PYTHON) |
|||
endif () |
|||
endif () |
|||
|
|||
find_path( MINIUPNPC_ID miniupnpc/miniwget.h |
|||
/usr/include |
|||
/usr/local/include |
|||
) |
|||
if ( MINIUPNPC_ID ) |
|||
message(STATUS "Found miniupnpc headers") |
|||
|
|||
find_library( MINIUPNPC_LS NAMES miniupnpc |
|||
PATHS |
|||
/usr/lib |
|||
/usr/local/lib |
|||
/opt/local/lib |
|||
/usr/lib/*/ |
|||
) |
|||
if ( MINIUPNPC_LS ) |
|||
message(STATUS "Found miniupnpc library: ${MINIUPNPC_LS}") |
|||
add_definitions(-DETH_MINIUPNPC) |
|||
else () |
|||
message(STATUS "Failed to find the miniupnpc library!") |
|||
endif () |
|||
else () |
|||
message(STATUS "Failed to find the miniupnpc headers!") |
|||
endif () |
|||
|
|||
find_path( READLINE_ID readline/readline.h |
|||
/usr/include |
|||
/usr/local/include |
|||
) |
|||
if ( READLINE_ID ) |
|||
message(STATUS "Found readline headers") |
|||
find_library( READLINE_LS NAMES readline |
|||
PATHS |
|||
/usr/lib |
|||
/usr/local/lib |
|||
/opt/local/lib |
|||
/usr/lib/*/ |
|||
) |
|||
if ( READLINE_LS ) |
|||
message(STATUS "Found readline library: ${READLINE_LS}") |
|||
add_definitions(-DETH_READLINE) |
|||
else () |
|||
message(STATUS "Failed to find the readline library!") |
|||
endif () |
|||
else () |
|||
message(STATUS "Failed to find the readline headers!") |
|||
endif () |
|||
|
|||
#if (LANGUAGES) |
|||
# find_package(Boost 1.53 REQUIRED COMPONENTS thread date_time) |
|||
#else() |
|||
# find_package(Boost 1.53 REQUIRED COMPONENTS thread date_time system regex) |
|||
#endif() |
|||
|
|||
set(QTQML 1) |
|||
endif() |
|||
|
|||
if(PYTHON_ID) |
|||
include_directories(${PYTHON_ID}) |
|||
endif() |
|||
if(MINIUPNPC_ID) |
|||
include_directories(${MINIUPNPC_ID}) |
|||
endif() |
|||
if(READLINE_ID) |
|||
include_directories(${READLINE_ID}) |
|||
endif() |
|||
|
|||
|
|||
|
|||
|
|||
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") |
|||
link_directories(/usr/local/lib) |
|||
include_directories(/usr/local/include) |
|||
endif() |
@ -0,0 +1,31 @@ |
|||
# Find miniupnpc |
|||
# |
|||
# Find the miniupnpc includes and library |
|||
# |
|||
# if you nee to add a custom library search path, do it via via CMAKE_FIND_ROOT_PATH |
|||
# |
|||
# This module defines |
|||
# MINIUPNPC_INCLUDE_DIR, where to find header, etc. |
|||
# MINIUPNPC_LIBRARY, the libraries needed to use gmp. |
|||
# MINIUPNPC_FOUND, If false, do not try to use gmp. |
|||
|
|||
# only look in default directories |
|||
find_path( |
|||
MINIUPNPC_INCLUDE_DIR |
|||
NAMES miniupnpc/miniupnpc.h |
|||
DOC "miniupnpc include dir" |
|||
) |
|||
|
|||
find_library( |
|||
MINIUPNPC_LIBRARY |
|||
NAMES miniupnpc |
|||
DOC "miniupnpc library" |
|||
) |
|||
|
|||
# handle the QUIETLY and REQUIRED arguments and set MINIUPNPC_FOUND to TRUE |
|||
# if all listed variables are TRUE, hide their existence from configuration view |
|||
include(FindPackageHandleStandardArgs) |
|||
find_package_handle_standard_args(miniupnpc DEFAULT_MSG |
|||
MINIUPNPC_INCLUDE_DIR MINIUPNPC_LIBRARY) |
|||
mark_as_advanced (MINIUPNPC_INCLUDE_DIR MINIUPNPC_LIBRARY) |
|||
|
@ -0,0 +1,31 @@ |
|||
# Find readline |
|||
# |
|||
# Find the readline includes and library |
|||
# |
|||
# if you nee to add a custom library search path, do it via via CMAKE_FIND_ROOT_PATH |
|||
# |
|||
# This module defines |
|||
# READLINE_INCLUDE_DIR, where to find header, etc. |
|||
# READLINE_LIBRARY, the libraries needed to use readline. |
|||
# READLINE_FOUND, If false, do not try to use readline. |
|||
|
|||
# only look in default directories |
|||
find_path( |
|||
READLINE_INCLUDE_DIR |
|||
NAMES readline/readline.h |
|||
DOC "readling include dir" |
|||
) |
|||
|
|||
find_library( |
|||
READLINE_LIBRARY |
|||
NAMES readline |
|||
DOC "readline library" |
|||
) |
|||
|
|||
# handle the QUIETLY and REQUIRED arguments and set READLINE_FOUND to TRUE |
|||
# if all listed variables are TRUE, hide their existence from configuration view |
|||
include(FindPackageHandleStandardArgs) |
|||
find_package_handle_standard_args(readline DEFAULT_MSG |
|||
READLINE_INCLUDE_DIR READLINE_LIBRARY) |
|||
mark_as_advanced (READLINE_INCLUDE_DIR READLINE_LIBRARY) |
|||
|
Loading…
Reference in new issue