Permalink
Fetching contributors…
Cannot retrieve contributors at this time
66 lines (53 sloc) 1.54 KB
if (PAM_ENABLED)
if (OPACK)
add_subdirectory(otop)
endif(OPACK)
add_subdirectory(basic)
add_subdirectory(fileserver)
else (PAM_ENABLED)
if (OPACK)
message(WARNING "Oterm without authentication support! May be very unsecure.")
else(OPACK)
message(WARNING "Oterm not compiled as there is no opack.")
endif (OPACK)
message(WARNING "Some examples are disabled as you dont have PAM: otop, basic, fileserver.")
endif (PAM_ENABLED)
if (OPACK)
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
add_subdirectory(oterm)
endif (CMAKE_SYSTEM_NAME STREQUAL "Linux")
endif (OPACK)
add_subdirectory(post)
add_subdirectory(userver)
add_subdirectory(interactive)
add_subdirectory(hello)
if (OTEMPLATE)
add_subdirectory(ofileserver)
if (PNG_ENABLED OR JPEG_ENABLED)
if(${ONION_USE_BINDINGS_CPP})
add_subdirectory(mandelbrot)
endif()
else (PNG_ENABLED OR JPEG_ENABLED)
message(WARNING "Some examples are disabled as you dont have libpng: mandelbrot")
endif (PNG_ENABLED OR JPEG_ENABLED)
else(OTEMPLATE)
message(WARNING "Some examples are disabled as you dont have otemplate installed: ofileserver mandelbrot")
endif(OTEMPLATE)
if (${CAIRO_ENABLED})
add_subdirectory(cairo)
endif (${CAIRO_ENABLED})
add_subdirectory(multiport)
if(${ONION_USE_BINDINGS_CPP})
add_subdirectory(multiport-cpp)
endif()
add_subdirectory(websockets)
if(${GC_ENABLED})
add_subdirectory(boehm-gc)
endif(${GC_ENABLED})
if (${ONION_USE_BINDINGS_CPP})
add_subdirectory(cpp)
endif (${ONION_USE_BINDINGS_CPP})
add_subdirectory(jsonrpc)
if(PTHREADS)
add_subdirectory(longpoll)
endif(PTHREADS)