diff options
author | Julien Isorce <julien.isorce@gmail.com> | 2008-09-11 02:07:12 +0200 |
---|---|---|
committer | Julien Isorce <julien.isorce@gmail.com> | 2008-09-11 02:07:12 +0200 |
commit | c6cfe462033adc4cd81001744a80d9fbb638b8b2 (patch) | |
tree | 3dd46690424c3bc084aedfff218dabebcd9aa6ff /CMakeLists.txt | |
parent | 2a6e63b5a1d16dc3e1ad961c71f189790c7f2941 (diff) |
Add cmake build http://www.cmake.org. See CMake install instructions in the INSTALL file. (I have not correctly configured yet the CMake build for unix, BE patient)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..f81f57a --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,57 @@ +cmake_minimum_required(VERSION "2.6.1") + +list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules) + +project (GST-PLUGINS-GL) + +find_package(Glib2 REQUIRED) +find_package(GTK2 REQUIRED) +find_package(ATK REQUIRED) +find_package(CAIRO REQUIRED) +find_package(LibXml2 REQUIRED) +find_package(LibIconv REQUIRED) +find_package(Gstreamer REQUIRED) +find_package(Glew REQUIRED) + +function(check_package name) + if (${name}_FOUND) + message(STATUS "Found ${name}... YES") + else (${name}_FOUND) + message(STATUS "Found ${name}... NO") + if (WIN32) + message(FATAL_ERROR "You should set the env variable ${name}_DIR") + else (WIN32) + message(FATAL_ERROR "You should install ${name} dev package") + endif (WIN32) + endif (${name}_FOUND) +endfunction(check_package) + +check_package(GLIB2) +check_package(GTK2) +check_package(ATK) +check_package(CAIRO) +check_package(LIBXML2) +check_package(LIBICONV) +check_package(GSTREAMER) +check_package(GLEW) + +message("****" ${GLIB2_INCLUDE_DIR}) +message("****" ${GLIB2_LIBRARIES}) +message("****" ${GTK2_INCLUDE_DIR}) +message("****" ${GTK2_LIBRARIES}) +message("****" ${ATK_INCLUDE_DIR}) +message("****" ${CAIRO_INCLUDE_DIR}) +message("****" ${LIBXML2_INCLUDE_DIR}) +message("****" ${LIBICONV_INCLUDE_DIR}) +message("****" ${GSTREAMER_INCLUDE_DIR}) +message("****" ${GSTREAMER_LIBRARIES}) +message("****" ${GLEW_INCLUDE_DIR}) +message("****" ${GLEW_LIBRARY}) + +add_subdirectory (gst-libs) +add_subdirectory (gst) +add_subdirectory (tests) + +add_dependencies(gstgl gstfreeglut) + +add_definitions(-DHAVE_CONFIG_H) |