+ set(HUDSON_BUILD_NUMBER 0)
+ set(HUDSON_BUILD_ID "none")
+endif()
+
+#####################################################################################
+# Configure library search paths
+#####################################################################################
+
+if(APPLE)
+ # Custom library directories for Mac, which should have precedence over any other
+ list(APPEND ADDITIONAL_LIBRARY_PATHS
+ ~/Library/Frameworks
+ /Library/Frameworks)
+endif(APPLE)
+
+if(NOT "${CMAKE_LIBRARY_ARCHITECTURE}" STREQUAL "")
+ # Workaround for Ubuntu/Debian which introduced the "multiarch" library
+ # directory structure, which is unsupported by CMake < 2.8.10, so we need to
+ # add paths manually
+ # see http://www.cmake.org/Bug/view.php?id=12049 and
+ # http://www.cmake.org/Bug/view.php?id=12037
+ list(APPEND ADDITIONAL_LIBRARY_PATHS
+ /usr/local/lib/${CMAKE_LIBRARY_ARCHITECTURE}
+ /usr/lib/${CMAKE_LIBRARY_ARCHITECTURE}
+ /lib/${CMAKE_LIBRARY_ARCHITECTURE})
+ message(STATUS "additional library directories: ${ADDITIONAL_LIBRARY_PATHS}")
+endif()
+
+if(NOT MSVC)
+ # TBD: are these really necessary? Aren't they considered by cmake automatically?
+ list(APPEND ADDITIONAL_LIBRARY_PATHS
+ /opt/local
+ /usr/local
+ /usr)
+endif()
+#####################################################################################
+
+IF(APPLE)
+ set(EVENT_INPUT_DEFAULT 1)
+
+ find_library(CORESERVICES_LIBRARY CoreServices)
+ find_library(COCOA_LIBRARY Cocoa)
+ list(APPEND PLATFORM_LIBS ${COCOA_LIBRARY} ${CORESERVICES_LIBRARY})
+
+elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
+ find_package(UDev)
+
+ if(UDEV_FOUND)
+ set(EVENT_INPUT_DEFAULT 1)
+ endif(UDEV_FOUND)