2014-01-20 16:58:58 +01:00
|
|
|
|
2015-02-04 05:07:11 +00:00
|
|
|
if(NOT MINGW)
|
2014-05-05 19:07:42 +02:00
|
|
|
add_subdirectory(w32-pthreads)
|
2015-02-04 05:07:11 +00:00
|
|
|
endif()
|
|
|
|
|
2014-04-14 23:27:52 +02:00
|
|
|
add_subdirectory(glad)
|
2014-12-06 21:45:51 -08:00
|
|
|
add_subdirectory(ipc-util)
|
2015-03-08 13:42:23 -05:00
|
|
|
add_subdirectory(libff)
|
2014-05-24 15:46:22 +02:00
|
|
|
|
|
|
|
find_package(Jansson 2.5 QUIET)
|
|
|
|
|
|
|
|
if(NOT JANSSON_FOUND)
|
|
|
|
message(STATUS "Jansson >=2.5 not found, building bundled version")
|
2014-07-17 18:02:43 +02:00
|
|
|
|
2014-05-24 15:46:22 +02:00
|
|
|
add_subdirectory(jansson)
|
2014-07-17 18:02:43 +02:00
|
|
|
|
|
|
|
set(OBS_JANSSON_IMPORT "jansson" CACHE INTERNAL "Internal var")
|
|
|
|
set(OBS_JANSSON_INCLUDE_DIRS "" CACHE INTERNAL "Internal var")
|
2014-05-24 15:46:22 +02:00
|
|
|
else()
|
|
|
|
message(STATUS "Using system Jansson library")
|
|
|
|
|
2014-07-17 18:02:43 +02:00
|
|
|
set(OBS_JANSSON_IMPORT "${JANSSON_LIBRARIES}" CACHE INTERNAL "Internal var")
|
|
|
|
set(OBS_JANSSON_INCLUDE_DIRS "${JANSSON_INCLUDE_DIRS}" CACHE INTERNAL "Internal var")
|
|
|
|
endif()
|