cmake/scripts/convert_vlc_to_cmake.sh: Fix config.h.cmake install.
[vlc.git] / extras / buildsystem / cmake / scripts / convert_vlc_to_cmake.sh
1 #!/bin/sh
2
3 cmake_dir=extras/buildsystem/cmake
4
5 if ! test -e configure.ac
6 then
7    echo "***"
8    echo "*** Error: You must run that script from the root vlc source tree"
9    echo "***"
10    exit -1
11 fi
12
13 echo "Installing CMakeLists.txt"
14 ln -sf $cmake_dir/CMakeLists/root_CMakeLists.txt CMakeLists.txt
15
16 echo "Installing src/CMakeLists.txt"
17 ln -sf ../$cmake_dir/CMakeLists/src_CMakeLists.txt src/CMakeLists.txt
18
19 echo "Installing include/config.h.cmake"
20 ln -sf ../$cmake_dir/config.h.cmake include/config.h.cmake
21
22 echo "Installing cmake/"
23 ln -sf $cmake_dir/include cmake
24
25 echo "Generating CMakeLists for modules/"
26 sh $cmake_dir/scripts/convert_modules_to_cmake.sh modules
27