cmake: Include contrib.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 6 Feb 2008 18:35:05 +0000 (18:35 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 6 Feb 2008 18:35:05 +0000 (18:35 +0000)
extras/buildsystem/cmake/include/config.cmake

index 7b59fe2..6b07e68 100644 (file)
@@ -11,6 +11,16 @@ include( ${CMAKE_SOURCE_DIR}/cmake/vlc_add_compile_flag.cmake )
 include( ${CMAKE_SOURCE_DIR}/cmake/vlc_check_type.cmake )
 include( ${CMAKE_SOURCE_DIR}/cmake/pkg_check_modules.cmake )
 
+###########################################################
+# Contribs
+###########################################################
+
+OPTION( ENABLE_CONTRIB "Attempt to use VLC contrib system to get the third-party libraries" ON )
+if(ENABLE_CONTRIB)
+  add_definitions(-I${CMAKE_SOURCE_DIR}/extras/contrib/include)
+  add_definitions(-L${CMAKE_SOURCE_DIR}/extras/contrib/lib)
+endif(ENABLE_CONTRIB)
+
 ###########################################################
 # Headers checks
 ###########################################################