]> git.sesse.net Git - vlc/commitdiff
cmake: Enable testing. (Launch with `make test` or with `ctest` (see ctest --help...
authorPierre d'Herbemont <pdherbemont@videolan.org>
Thu, 7 Feb 2008 15:13:17 +0000 (15:13 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Thu, 7 Feb 2008 15:13:17 +0000 (15:13 +0000)
extras/buildsystem/cmake/CMakeLists/root_CMakeLists.txt

index 277a4f0e0bfdc99dee72ff6c20244c74b6c950d3..71f232a29a25a3854b94bc543f91022f2ddba847 100644 (file)
@@ -1,5 +1,7 @@
 PROJECT(vlc)
 
+ENABLE_TESTING()
+
 # Set the module path
 set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
 
@@ -12,8 +14,8 @@ include( config )
 # Global definitions
 add_definitions(-DHAVE_CONFIG_H)
 add_definitions(-D__LIBVLC__)
-add_definitions(-I.)
 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 # Needed for glibc:
 add_definitions(-D_GNU_SOURCE)
@@ -26,5 +28,3 @@ add_subdirectory(src)
 add_subdirectory(modules)
 add_subdirectory(po)
 
-
-