|
|
@ -1,16 +1,16 @@ |
|
|
|
# Find microhttpd |
|
|
|
# Find microhttpd |
|
|
|
# |
|
|
|
# Find the microhttpd includes and library |
|
|
|
# |
|
|
|
# if you nee to add a custom library search path, do it via via CMAKE_PREFIX_PATH |
|
|
|
# |
|
|
|
# |
|
|
|
# if you need to add a custom library search path, do it via via CMAKE_PREFIX_PATH |
|
|
|
# |
|
|
|
# This module defines |
|
|
|
# MHD_INCLUDE_DIRS, where to find header, etc. |
|
|
|
# MHD_LIBRARIES, the libraries needed to use jsoncpp. |
|
|
|
# MHD_FOUND, If false, do not try to use jsoncpp. |
|
|
|
|
|
|
|
find_path( |
|
|
|
MHD_INCLUDE_DIR |
|
|
|
MHD_INCLUDE_DIR |
|
|
|
NAMES microhttpd.h |
|
|
|
DOC "microhttpd include dir" |
|
|
|
) |
|
|
@ -25,7 +25,7 @@ set(MHD_INCLUDE_DIRS ${MHD_INCLUDE_DIR}) |
|
|
|
set(MHD_LIBRARIES ${MHD_LIBRARY}) |
|
|
|
|
|
|
|
# debug library on windows |
|
|
|
# same naming convention as in qt (appending debug library with d) |
|
|
|
# same naming convention as in QT (appending debug library with d) |
|
|
|
# boost is using the same "hack" as us with "optimized" and "debug" |
|
|
|
# official MHD project actually uses _d suffix |
|
|
|
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") |
|
|
|