Allow specifying osxfuse include directory on command line using "cmake -DCMAKE_CXX_FLAGS=-I/path/to/osxfuse/include/dir". Furthermore, add some setup instructions for installing the requirements on Mac OS X.
This commit is contained in:
parent
f3ea142571
commit
3ff69b6a9f
@ -61,13 +61,13 @@ Requirements
|
||||
You can use the following commands to install these requirements
|
||||
|
||||
# Ubuntu
|
||||
$ sudo apt-get install libcurl4-openssl-dev libboost-filesystem-dev libboost-system-dev libboost-chrono-dev libboost-program-options-dev libboost-thread-dev libcrypto++-dev libssl-dev libfuse-dev python
|
||||
$ sudo apt-get install g++ cmake libcurl4-openssl-dev libboost-filesystem-dev libboost-system-dev libboost-chrono-dev libboost-program-options-dev libboost-thread-dev libcrypto++-dev libssl-dev libfuse-dev python
|
||||
|
||||
# Fedora
|
||||
TODO
|
||||
|
||||
# Macintosh
|
||||
TODO
|
||||
brew install cmake boost cryptopp osxfuse
|
||||
|
||||
Build & Install
|
||||
---------------
|
||||
|
@ -21,12 +21,7 @@ target_enable_style_warnings(${PROJECT_NAME})
|
||||
target_activate_cpp14(${PROJECT_NAME})
|
||||
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
if(EXISTS "/usr/local/include/osxfuse")
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE /usr/local/include/osxfuse)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE osxfuse)
|
||||
else()
|
||||
message(FATAL_ERROR "Osxfuse not found in /usr/local/include/osxfuse. Please install osxfuse.")
|
||||
endif(EXISTS "/usr/local/include/osxfuse")
|
||||
else(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE osxfuse)
|
||||
else(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE fuse)
|
||||
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
|
4
vendor/scrypt/CMakeLists.txt
vendored
4
vendor/scrypt/CMakeLists.txt
vendored
@ -5,8 +5,8 @@ project (scrypt C)
|
||||
# This builds the original scrypt source using configure & make. We don't use their build result,
|
||||
# but we use the config.h it creates somewhere on the way (see target_compile_options below).
|
||||
string(TOUPPER "${CMAKE_BUILD_TYPE}" BUILDTYPE)
|
||||
set(SCRYPT_CFLAGS "${CMAKE_C_FLAGS_${BUILDTYPE}}")
|
||||
set(SCRYPT_CPPFLAGS "${CMAKE_CXX_FLAGS_${BUILDTYPE}}")
|
||||
set(SCRYPT_CFLAGS "${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${BUILDTYPE}}")
|
||||
set(SCRYPT_CPPFLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${BUILDTYPE}}")
|
||||
ExternalProject_Add(scrypt_original
|
||||
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/scrypt-1.2.0/scrypt
|
||||
CONFIGURE_COMMAND /usr/bin/env CC=${CMAKE_C_COMPILER} CFLAGS=${SCRYPT_CFLAGS} CPPFLAGS=${SCRYPT_CPPFLAGS} ${CMAKE_CURRENT_SOURCE_DIR}/scrypt-1.2.0/scrypt/configure --prefix=${CMAKE_BINARY_DIR}/vendor/scrypt/
|
||||
|
Loading…
x
Reference in New Issue
Block a user