X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=extras%2Fbuildsystem%2Fcmake%2FCMakeLists%2Froot_CMakeLists.txt;h=337192bdb43dcd1d06d9186ff79bce42d891dbfb;hb=aa1868c759f9f52ffd46596f63c528cf1bfa3e26;hp=35f3e497f21ae6c8fa3a2fea80bc609d073ba32f;hpb=007245adca45856651d28a580622b2835639f040;p=vlc diff --git a/extras/buildsystem/cmake/CMakeLists/root_CMakeLists.txt b/extras/buildsystem/cmake/CMakeLists/root_CMakeLists.txt index 35f3e497f2..337192bdb4 100644 --- a/extras/buildsystem/cmake/CMakeLists/root_CMakeLists.txt +++ b/extras/buildsystem/cmake/CMakeLists/root_CMakeLists.txt @@ -1,5 +1,8 @@ PROJECT(vlc) +cmake_policy(VERSION 2.6) +cmake_minimum_required(VERSION 2.6) + ENABLE_TESTING() # Set the module path @@ -15,7 +18,7 @@ include( config ) add_definitions(-DHAVE_CONFIG_H) add_definitions(-D__LIBVLC__) # Large file support for Solaris and Linux: -add_definitions(-D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE) +add_definitions(-D_FILE_OFFSET_BITS=64 -D__USE_UNIX98) # Thread safety: add_definitions(-D_REENTRANT -D_THREAD_SAFE) @@ -29,9 +32,13 @@ add_definitions(-D_GNU_SOURCE) include_directories(${CMAKE_SOURCE_DIR}/include ${CMAKE_BINARY_DIR}/include) # our sources: +add_subdirectory(libs/loader) add_subdirectory(src) add_subdirectory(modules) -add_subdirectory(po) +if(ENABLE_NLS) + add_subdirectory(po) +endif(ENABLE_NLS) +add_subdirectory(test) # Enable uninstall configure_file(