compilation: fixes for conda virtual environnement

parent 3bdc6910
......@@ -44,13 +44,14 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
#INCLUDEs
target_include_directories(lima${NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
target_include_directories(lima${NAME} PUBLIC "${EIGER_SDK_ROOT}/linux/EigerAPI/include")
target_include_directories(lima${NAME} PUBLIC "/usr/include/jsoncpp")
find_path(EIGER_JSONCPP_INCLUDE_DIR json HINTS ${CONDA_PREFIX}/include/json /usr/include/jsoncpp/json)
target_include_directories(lima${NAME} PUBLIC ${EIGER_JSONCPP_INCLUDE_DIR})
#LIBRARIES
find_library(EIGER_CURL_LIB curl)
find_library(EIGER_LZ4_LIB lz4)
find_library(EIGER_ZMQ_LIB zmq)
find_library(EIGER_JSONCPP_LIB jsoncpp)
find_library(EIGER_CURL_LIB curl HINTS ${CONDA_PREFIX}/lib)
find_library(EIGER_LZ4_LIB lz4 HINTS ${CONDA_PREFIX}/lib)
find_library(EIGER_ZMQ_LIB zmq HINTS ${CONDA_PREFIX}/lib)
find_library(EIGER_JSONCPP_LIB json HINTS ${CONDA_PREFIX}/lib)
if (("${EIGER_CURL_LIB}" STREQUAL "EIGER_CURL_LIB-NOTFOUND"))
message(FATAL_ERROR "${NAME} : libcurl not found, you can search it in cmake-gui or try to install it if it isn't here.")
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment