cmake_eclipse.sh 757 B

12345678910111213141516
  1. rm -f CMakeCache.txt
  2. mkdir -p Urho3D/Release Urho3D/Debug Urho3D/RelWithDebInfo
  3. cmake -E chdir Urho3D/Release cmake -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ../..
  4. cmake -E chdir Urho3D/Debug cmake -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ../..
  5. cmake -E chdir Urho3D/RelWithDebInfo cmake -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo ../..
  6. sed -i.bak 's/OpenGL/Direct3D9/g' Doxyfile
  7. #
  8. # Create symbolic links in the respective Eclipse configuration subdir to allow running Urho3D within the Eclipse itself
  9. cd Urho3D
  10. for conf in Debug RelWithDebInfo Release; do
  11. if [ ! -d $conf/Urho3D/CoreData ]
  12. then
  13. ln -s ../../../Bin/CoreData $conf/Urho3D/.
  14. ln -s ../../../Bin/Data $conf/Urho3D/.
  15. fi
  16. done