# Copyright (C) 2009  Miriam Ruiz <little_miry@yahoo.es>
# Distributed under the same license as the game. See debian/copyright.

--- libtuxcap-1.4.0.orig/tuxcap/demo1/CMakeLists.txt
+++ libtuxcap-1.4.0/tuxcap/demo1/CMakeLists.txt
@@ -1,48 +1,11 @@
-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle)
-
-#Declare any external dependencies that your project may have here.
-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java
-#If you're not sure what name to use, look in the Modules directory of your
-#cmake install and check that a file named Find(Package).cmake exists
-SET(Required_Packages
-#list packages here
-#SDL OpenGL GLU 
-)
-
-#this foreach loads all of the packages that you specified as required.
-#It shouldn't need to be modified.
-FOREACH(Package ${Required_Packages})
-  LOADPACKAGE(${Package})
-ENDFOREACH(Package)
-
-#Set any libraries that your project depends on.
-#examples: ITKCommon, VTKRendering, etc
-SET(Libraries
-tuxcap
-)
-
-#the following block of code is an example of how to build an executable in
-#cmake.  Unmodified, it will add an executable called "MyExe" to the project.
-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will
-#be linked to all the libraries you specified above. 
-#You can build more than one executable per project
+INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL)
 
 SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp)
 IF(APPLE)
             SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m)
 ENDIF(APPLE)
 
-SET(CurrentExe "../../demo_1")
+SET(CurrentExe "./demo_1")
 ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES})
 
-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries})
-
-#the following line is an example of how to add a test to your project.
-#Testname is the title for this particular test.  ExecutableToRun is the
-#program which will be running this test.  It can either be a part of this
-#project or an external executable.  After that list any args that are needed
-#for this test.  Include as many tests as you like.  If your project doesn't have
-#any tests you can comment out or delete the following line.
-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3)
-	
-#Once you're done modifying this template, you should rename it to "CMakeLists.txt"
+TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap)
--- libtuxcap-1.4.0.orig/tuxcap/demo2/CMakeLists.txt
+++ libtuxcap-1.4.0/tuxcap/demo2/CMakeLists.txt
@@ -1,48 +1,11 @@
-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle)
-
-#Declare any external dependencies that your project may have here.
-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java
-#If you're not sure what name to use, look in the Modules directory of your
-#cmake install and check that a file named Find(Package).cmake exists
-SET(Required_Packages
-#list packages here
-#SDL OpenGL GLU 
-)
-
-#this foreach loads all of the packages that you specified as required.
-#It shouldn't need to be modified.
-FOREACH(Package ${Required_Packages})
-  LOADPACKAGE(${Package})
-ENDFOREACH(Package)
-
-#Set any libraries that your project depends on.
-#examples: ITKCommon, VTKRendering, etc
-SET(Libraries
-tuxcap
-)
-
-#the following block of code is an example of how to build an executable in
-#cmake.  Unmodified, it will add an executable called "MyExe" to the project.
-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will
-#be linked to all the libraries you specified above. 
-#You can build more than one executable per project
+INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL)
 
 SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp)
 IF(APPLE)
             SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m)
 ENDIF(APPLE)
 
-SET(CurrentExe "../../demo_2")
+SET(CurrentExe "./demo_2")
 ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES})
 
-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries})
-
-#the following line is an example of how to add a test to your project.
-#Testname is the title for this particular test.  ExecutableToRun is the
-#program which will be running this test.  It can either be a part of this
-#project or an external executable.  After that list any args that are needed
-#for this test.  Include as many tests as you like.  If your project doesn't have
-#any tests you can comment out or delete the following line.
-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3)
-	
-#Once you're done modifying this template, you should rename it to "CMakeLists.txt"
+TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap)
--- libtuxcap-1.4.0.orig/tuxcap/demo3/CMakeLists.txt
+++ libtuxcap-1.4.0/tuxcap/demo3/CMakeLists.txt
@@ -1,48 +1,11 @@
-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle)
-
-#Declare any external dependencies that your project may have here.
-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java
-#If you're not sure what name to use, look in the Modules directory of your
-#cmake install and check that a file named Find(Package).cmake exists
-#SET(Required_Packages
-#list packages here
-#SDL OpenGL GLU 
-#)
-
-#this foreach loads all of the packages that you specified as required.
-#It shouldn't need to be modified.
-FOREACH(Package ${Required_Packages})
-  LOADPACKAGE(${Package})
-ENDFOREACH(Package)
-
-#Set any libraries that your project depends on.
-#examples: ITKCommon, VTKRendering, etc
-SET(Libraries
-tuxcap
-)
-
-#the following block of code is an example of how to build an executable in
-#cmake.  Unmodified, it will add an executable called "MyExe" to the project.
-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will
-#be linked to all the libraries you specified above. 
-#You can build more than one executable per project
+INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL)
 
 SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp)
 IF(APPLE)
             SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m)
 ENDIF(APPLE)
 
-SET(CurrentExe "../../demo_3")
+SET(CurrentExe "./demo_3")
 ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES})
 
-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries})
-
-#the following line is an example of how to add a test to your project.
-#Testname is the title for this particular test.  ExecutableToRun is the
-#program which will be running this test.  It can either be a part of this
-#project or an external executable.  After that list any args that are needed
-#for this test.  Include as many tests as you like.  If your project doesn't have
-#any tests you can comment out or delete the following line.
-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3)
-	
-#Once you're done modifying this template, you should rename it to "CMakeLists.txt"
+TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap)
--- libtuxcap-1.4.0.orig/tuxcap/demo4/CMakeLists.txt
+++ libtuxcap-1.4.0/tuxcap/demo4/CMakeLists.txt
@@ -1,50 +1,11 @@
-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle)
-
-#Declare any external dependencies that your project may have here.
-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java
-#If you're not sure what name to use, look in the Modules directory of your
-#cmake install and check that a file named Find(Package).cmake exists
-SET(Required_Packages
-#list packages here
-#SDL OpenGL GLU 
-)
-
-#this foreach loads all of the packages that you specified as required.
-#It shouldn't need to be modified.
-FOREACH(Package ${Required_Packages})
-  LOADPACKAGE(${Package})
-ENDFOREACH(Package)
-
-#Set any libraries that your project depends on.
-#examples: ITKCommon, VTKRendering, etc
-SET(Libraries
-#list libraries here
-#SDL Magick++ audiere GL GLU 
-tuxcap
-)
-
-#the following block of code is an example of how to build an executable in
-#cmake.  Unmodified, it will add an executable called "MyExe" to the project.
-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will
-#be linked to all the libraries you specified above. 
-#You can build more than one executable per project
+INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL)
 
 SET(MY_SOURCES main.cpp TitleScreen.cpp Board.cpp GameApp.cpp Res.cpp)
 IF(APPLE)
             SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m)
 ENDIF(APPLE)
 
-SET(CurrentExe "../../demo_4")
+SET(CurrentExe "./demo_4")
 ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES})
 
-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries})
-
-#the following line is an example of how to add a test to your project.
-#Testname is the title for this particular test.  ExecutableToRun is the
-#program which will be running this test.  It can either be a part of this
-#project or an external executable.  After that list any args that are needed
-#for this test.  Include as many tests as you like.  If your project doesn't have
-#any tests you can comment out or delete the following line.
-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3)
-	
-#Once you're done modifying this template, you should rename it to "CMakeLists.txt"
+TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap)
--- libtuxcap-1.4.0.orig/tuxcap/demo5/CMakeLists.txt
+++ libtuxcap-1.4.0/tuxcap/demo5/CMakeLists.txt
@@ -1,50 +1,11 @@
-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle)
-
-#Declare any external dependencies that your project may have here.
-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java
-#If you're not sure what name to use, look in the Modules directory of your
-#cmake install and check that a file named Find(Package).cmake exists
-SET(Required_Packages
-#list packages here
-#SDL OpenGL GLU 
-)
-
-#this foreach loads all of the packages that you specified as required.
-#It shouldn't need to be modified.
-FOREACH(Package ${Required_Packages})
-  LOADPACKAGE(${Package})
-ENDFOREACH(Package)
-
-#Set any libraries that your project depends on.
-#examples: ITKCommon, VTKRendering, etc
-SET(Libraries
-#list libraries here
-#SDL Magick++ audiere GL GLU 
-tuxcap
-)
-
-#the following block of code is an example of how to build an executable in
-#cmake.  Unmodified, it will add an executable called "MyExe" to the project.
-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will
-#be linked to all the libraries you specified above. 
-#You can build more than one executable per project
+INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL)
 
 SET(MY_SOURCES main.cpp TitleScreen.cpp DemoDialog.cpp Board.cpp GameApp.cpp Res.cpp)
 IF(APPLE)
             SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m)
 ENDIF(APPLE)
 
-SET(CurrentExe "../../demo_5")
+SET(CurrentExe "./demo_5")
 ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES})
 
-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries})
-
-#the following line is an example of how to add a test to your project.
-#Testname is the title for this particular test.  ExecutableToRun is the
-#program which will be running this test.  It can either be a part of this
-#project or an external executable.  After that list any args that are needed
-#for this test.  Include as many tests as you like.  If your project doesn't have
-#any tests you can comment out or delete the following line.
-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3)
-	
-#Once you're done modifying this template, you should rename it to "CMakeLists.txt"
+TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap)
--- libtuxcap-1.4.0.orig/tuxcap/hungarr/CMakeLists.txt
+++ libtuxcap-1.4.0/tuxcap/hungarr/CMakeLists.txt
@@ -1,33 +1,4 @@
-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle)
-
-#Declare any external dependencies that your project may have here.
-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java
-#If you're not sure what name to use, look in the Modules directory of your
-#cmake install and check that a file named Find(Package).cmake exists
-SET(Required_Packages
-#list packages here
-#SDL OpenGL GLU SDL_mixer
-)
-
-#this foreach loads all of the packages that you specified as required.
-#It shouldn't need to be modified.
-FOREACH(Package ${Required_Packages})
-  LOADPACKAGE(${Package})
-ENDFOREACH(Package)
-
-#Set any libraries that your project depends on.
-#examples: ITKCommon, VTKRendering, etc
-SET(Libraries
-#list libraries here
-#SDL SDL_mixer Magick++ audiere GL GLU 
-tuxcap
-)
-
-#the following block of code is an example of how to build an executable in
-#cmake.  Unmodified, it will add an executable called "MyExe" to the project.
-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will
-#be linked to all the libraries you specified above. 
-#You can build more than one executable per project
+INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL)
 
 SET(MY_SOURCES  main.cpp TitleScreen.cpp OptionsDialog.cpp GameOverEffect.cpp LevelupEffect.cpp 
 Board.cpp GameApp.h GameApp.cpp Res.cpp)
@@ -35,17 +6,7 @@
             SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m)
 ENDIF(APPLE)
 
-SET(CurrentExe "../../Hungarr")
+SET(CurrentExe "./Hungarr")
 ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES})
 
-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries})
-
-#the following line is an example of how to add a test to your project.
-#Testname is the title for this particular test.  ExecutableToRun is the
-#program which will be running this test.  It can either be a part of this
-#project or an external executable.  After that list any args that are needed
-#for this test.  Include as many tests as you like.  If your project doesn't have
-#any tests you can comment out or delete the following line.
-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3)
-	
-#Once you're done modifying this template, you should rename it to "CMakeLists.txt"
+TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap)
--- libtuxcap-1.4.0.orig/tuxcap/particledemo/CMakeLists.txt
+++ libtuxcap-1.4.0/tuxcap/particledemo/CMakeLists.txt
@@ -1,48 +1,11 @@
-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk)
-
-#Declare any external dependencies that your project may have here.
-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java
-#If you're not sure what name to use, look in the Modules directory of your
-#cmake install and check that a file named Find(Package).cmake exists
-SET(Required_Packages
-#list packages here
-#SDL OpenGL GLU 
-)
-
-#this foreach loads all of the packages that you specified as required.
-#It shouldn't need to be modified.
-FOREACH(Package ${Required_Packages})
-  LOADPACKAGE(${Package})
-ENDFOREACH(Package)
-
-#Set any libraries that your project depends on.
-#examples: ITKCommon, VTKRendering, etc
-SET(Libraries
-tuxcap
-)
-
-#the following block of code is an example of how to build an executable in
-#cmake.  Unmodified, it will add an executable called "MyExe" to the project.
-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will
-#be linked to all the libraries you specified above. 
-#You can build more than one executable per project
+INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL)
 
 SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp)
 IF(APPLE)
             SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m)
 ENDIF(APPLE)
 
-SET(CurrentExe "../../particle_demo")
+SET(CurrentExe "./particle_demo")
 ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES})
 
-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries})
-
-#the following line is an example of how to add a test to your project.
-#Testname is the title for this particular test.  ExecutableToRun is the
-#program which will be running this test.  It can either be a part of this
-#project or an external executable.  After that list any args that are needed
-#for this test.  Include as many tests as you like.  If your project doesn't have
-#any tests you can comment out or delete the following line.
-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3)
-	
-#Once you're done modifying this template, you should rename it to "CMakeLists.txt"
+TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap)
--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo/CMakeLists.txt
+++ libtuxcap-1.4.0/tuxcap/physicsdemo/CMakeLists.txt
@@ -1,50 +1,11 @@
-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle)
-
-#Declare any external dependencies that your project may have here.
-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java
-#If you're not sure what name to use, look in the Modules directory of your
-#cmake install and check that a file named Find(Package).cmake exists
-SET(Required_Packages
-#list packages here
-#SDL OpenGL GLU SDL_mixer
-)
-
-#this foreach loads all of the packages that you specified as required.
-#It shouldn't need to be modified.
-FOREACH(Package ${Required_Packages})
-  LOADPACKAGE(${Package})
-ENDFOREACH(Package)
-
-#Set any libraries that your project depends on.
-#examples: ITKCommon, VTKRendering, etc
-SET(Libraries
-#list libraries here
-#SDL SDL_mixer Magick++ GL GLU 
-tuxcap
-)
-
-#the following block of code is an example of how to build an executable in
-#cmake.  Unmodified, it will add an executable called "MyExe" to the project.
-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will
-#be linked to all the libraries you specified above. 
-#You can build more than one executable per project
+INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL)
 
 SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp)
 IF(APPLE)
             SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m)
 ENDIF(APPLE)
 
-SET(CurrentExe "../../Physicsdemo")
+SET(CurrentExe "./Physicsdemo")
 ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES})
 
-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries})
-
-#the following line is an example of how to add a test to your project.
-#Testname is the title for this particular test.  ExecutableToRun is the
-#program which will be running this test.  It can either be a part of this
-#project or an external executable.  After that list any args that are needed
-#for this test.  Include as many tests as you like.  If your project doesn't have
-#any tests you can comment out or delete the following line.
-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3)
-	
-#Once you're done modifying this template, you should rename it to "CMakeLists.txt"
+TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap)
--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo2/CMakeLists.txt
+++ libtuxcap-1.4.0/tuxcap/physicsdemo2/CMakeLists.txt
@@ -1,50 +1,11 @@
-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle)
-
-#Declare any external dependencies that your project may have here.
-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java
-#If you're not sure what name to use, look in the Modules directory of your
-#cmake install and check that a file named Find(Package).cmake exists
-SET(Required_Packages
-#list packages here
-#SDL OpenGL GLU SDL_mixer
-)
-
-#this foreach loads all of the packages that you specified as required.
-#It shouldn't need to be modified.
-FOREACH(Package ${Required_Packages})
-  LOADPACKAGE(${Package})
-ENDFOREACH(Package)
-
-#Set any libraries that your project depends on.
-#examples: ITKCommon, VTKRendering, etc
-SET(Libraries
-#list libraries here
-#SDL SDL_mixer Magick++ audiere GL GLU 
-tuxcap
-)
-
-#the following block of code is an example of how to build an executable in
-#cmake.  Unmodified, it will add an executable called "MyExe" to the project.
-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will
-#be linked to all the libraries you specified above. 
-#You can build more than one executable per project
+INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL)
 
 SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp)
 IF(APPLE)
             SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m)
 ENDIF(APPLE)
 
-SET(CurrentExe "../../Physicsdemo2")
+SET(CurrentExe "./Physicsdemo2")
 ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES})
 
-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries})
-
-#the following line is an example of how to add a test to your project.
-#Testname is the title for this particular test.  ExecutableToRun is the
-#program which will be running this test.  It can either be a part of this
-#project or an external executable.  After that list any args that are needed
-#for this test.  Include as many tests as you like.  If your project doesn't have
-#any tests you can comment out or delete the following line.
-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3)
-	
-#Once you're done modifying this template, you should rename it to "CMakeLists.txt"
+TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap)
--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo3/CMakeLists.txt
+++ libtuxcap-1.4.0/tuxcap/physicsdemo3/CMakeLists.txt
@@ -1,50 +1,11 @@
-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle)
-
-#Declare any external dependencies that your project may have here.
-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java
-#If you're not sure what name to use, look in the Modules directory of your
-#cmake install and check that a file named Find(Package).cmake exists
-SET(Required_Packages
-#list packages here
-#SDL OpenGL GLU SDL_mixer
-)
-
-#this foreach loads all of the packages that you specified as required.
-#It shouldn't need to be modified.
-FOREACH(Package ${Required_Packages})
-  LOADPACKAGE(${Package})
-ENDFOREACH(Package)
-
-#Set any libraries that your project depends on.
-#examples: ITKCommon, VTKRendering, etc
-SET(Libraries
-#list libraries here
-#SDL SDL_mixer Magick++ audiere GL GLU 
-tuxcap
-)
-
-#the following block of code is an example of how to build an executable in
-#cmake.  Unmodified, it will add an executable called "MyExe" to the project.
-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will
-#be linked to all the libraries you specified above. 
-#You can build more than one executable per project
+INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL)
 
 SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp)
 IF(APPLE)
             SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m)
 ENDIF(APPLE)
 
-SET(CurrentExe "../../Physicsdemo3")
+SET(CurrentExe "./Physicsdemo3")
 ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES})
 
-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries})
-
-#the following line is an example of how to add a test to your project.
-#Testname is the title for this particular test.  ExecutableToRun is the
-#program which will be running this test.  It can either be a part of this
-#project or an external executable.  After that list any args that are needed
-#for this test.  Include as many tests as you like.  If your project doesn't have
-#any tests you can comment out or delete the following line.
-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3)
-	
-#Once you're done modifying this template, you should rename it to "CMakeLists.txt"
+TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap)
--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo4/CMakeLists.txt
+++ libtuxcap-1.4.0/tuxcap/physicsdemo4/CMakeLists.txt
@@ -1,50 +1,11 @@
-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle)
-
-#Declare any external dependencies that your project may have here.
-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java
-#If you're not sure what name to use, look in the Modules directory of your
-#cmake install and check that a file named Find(Package).cmake exists
-SET(Required_Packages
-#list packages here
-#SDL OpenGL GLU SDL_mixer
-)
-
-#this foreach loads all of the packages that you specified as required.
-#It shouldn't need to be modified.
-FOREACH(Package ${Required_Packages})
-  LOADPACKAGE(${Package})
-ENDFOREACH(Package)
-
-#Set any libraries that your project depends on.
-#examples: ITKCommon, VTKRendering, etc
-SET(Libraries
-#list libraries here
-#SDL SDL_mixer Magick++ audiere GL GLU 
-tuxcap
-)
-
-#the following block of code is an example of how to build an executable in
-#cmake.  Unmodified, it will add an executable called "MyExe" to the project.
-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will
-#be linked to all the libraries you specified above. 
-#You can build more than one executable per project
+INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL)
 
 SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp)
 IF(APPLE)
             SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m)
 ENDIF(APPLE)
 
-SET(CurrentExe "../../Physicsdemo4")
+SET(CurrentExe "./Physicsdemo4")
 ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES})
 
-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries})
-
-#the following line is an example of how to add a test to your project.
-#Testname is the title for this particular test.  ExecutableToRun is the
-#program which will be running this test.  It can either be a part of this
-#project or an external executable.  After that list any args that are needed
-#for this test.  Include as many tests as you like.  If your project doesn't have
-#any tests you can comment out or delete the following line.
-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3)
-	
-#Once you're done modifying this template, you should rename it to "CMakeLists.txt"
+TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap)
--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo5/CMakeLists.txt
+++ libtuxcap-1.4.0/tuxcap/physicsdemo5/CMakeLists.txt
@@ -1,50 +1,14 @@
-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle)
+INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL)
 
 #Declare any external dependencies that your project may have here.
 #examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java
-#If you're not sure what name to use, look in the Modules directory of your
-#cmake install and check that a file named Find(Package).cmake exists
-SET(Required_Packages
-#list packages here
-#SDL OpenGL GLU SDL_mixer
-)
-
-#this foreach loads all of the packages that you specified as required.
-#It shouldn't need to be modified.
-FOREACH(Package ${Required_Packages})
-  LOADPACKAGE(${Package})
-ENDFOREACH(Package)
-
-#Set any libraries that your project depends on.
-#examples: ITKCommon, VTKRendering, etc
-SET(Libraries
-#list libraries here
-#SDL SDL_mixer Magick++ audiere GL GLU 
-tuxcap
-)
-
-#the following block of code is an example of how to build an executable in
-#cmake.  Unmodified, it will add an executable called "MyExe" to the project.
-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will
-#be linked to all the libraries you specified above. 
-#You can build more than one executable per project
 
 SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp)
 IF(APPLE)
             SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m)
 ENDIF(APPLE)
 
-SET(CurrentExe "../../Physicsdemo5")
+SET(CurrentExe "./Physicsdemo5")
 ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES})
 
-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries})
-
-#the following line is an example of how to add a test to your project.
-#Testname is the title for this particular test.  ExecutableToRun is the
-#program which will be running this test.  It can either be a part of this
-#project or an external executable.  After that list any args that are needed
-#for this test.  Include as many tests as you like.  If your project doesn't have
-#any tests you can comment out or delete the following line.
-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3)
-	
-#Once you're done modifying this template, you should rename it to "CMakeLists.txt"
+TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap)
--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo6/CMakeLists.txt
+++ libtuxcap-1.4.0/tuxcap/physicsdemo6/CMakeLists.txt
@@ -1,50 +1,11 @@
-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle)
-
-#Declare any external dependencies that your project may have here.
-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java
-#If you're not sure what name to use, look in the Modules directory of your
-#cmake install and check that a file named Find(Package).cmake exists
-SET(Required_Packages
-#list packages here
-#SDL OpenGL GLU SDL_mixer
-)
-
-#this foreach loads all of the packages that you specified as required.
-#It shouldn't need to be modified.
-FOREACH(Package ${Required_Packages})
-  LOADPACKAGE(${Package})
-ENDFOREACH(Package)
-
-#Set any libraries that your project depends on.
-#examples: ITKCommon, VTKRendering, etc
-SET(Libraries
-#list libraries here
-#SDL SDL_mixer Magick++ audiere GL GLU 
-tuxcap
-)
-
-#the following block of code is an example of how to build an executable in
-#cmake.  Unmodified, it will add an executable called "MyExe" to the project.
-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will
-#be linked to all the libraries you specified above. 
-#You can build more than one executable per project
+INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL)
 
 SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp)
 IF(APPLE)
             SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m)
 ENDIF(APPLE)
 
-SET(CurrentExe "../../Physicsdemo6")
+SET(CurrentExe "./Physicsdemo6")
 ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES})
 
-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries})
-
-#the following line is an example of how to add a test to your project.
-#Testname is the title for this particular test.  ExecutableToRun is the
-#program which will be running this test.  It can either be a part of this
-#project or an external executable.  After that list any args that are needed
-#for this test.  Include as many tests as you like.  If your project doesn't have
-#any tests you can comment out or delete the following line.
-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3)
-	
-#Once you're done modifying this template, you should rename it to "CMakeLists.txt"
+TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap)
--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo7/CMakeLists.txt
+++ libtuxcap-1.4.0/tuxcap/physicsdemo7/CMakeLists.txt
@@ -1,50 +1,11 @@
-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle)
-
-#Declare any external dependencies that your project may have here.
-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java
-#If you're not sure what name to use, look in the Modules directory of your
-#cmake install and check that a file named Find(Package).cmake exists
-SET(Required_Packages
-#list packages here
-#SDL OpenGL GLU SDL_mixer
-)
-
-#this foreach loads all of the packages that you specified as required.
-#It shouldn't need to be modified.
-FOREACH(Package ${Required_Packages})
-  LOADPACKAGE(${Package})
-ENDFOREACH(Package)
-
-#Set any libraries that your project depends on.
-#examples: ITKCommon, VTKRendering, etc
-SET(Libraries
-#list libraries here
-#SDL SDL_mixer Magick++ audiere GL GLU 
-tuxcap
-)
-
-#the following block of code is an example of how to build an executable in
-#cmake.  Unmodified, it will add an executable called "MyExe" to the project.
-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will
-#be linked to all the libraries you specified above. 
-#You can build more than one executable per project
+INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL)
 
 SET(MY_SOURCES main.cpp Board.cpp GameApp.cpp)
 IF(APPLE)
             SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m)
 ENDIF(APPLE)
 
-SET(CurrentExe "../../Physicsdemo7")
+SET(CurrentExe "./Physicsdemo7")
 ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES})
 
-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries})
-
-#the following line is an example of how to add a test to your project.
-#Testname is the title for this particular test.  ExecutableToRun is the
-#program which will be running this test.  It can either be a part of this
-#project or an external executable.  After that list any args that are needed
-#for this test.  Include as many tests as you like.  If your project doesn't have
-#any tests you can comment out or delete the following line.
-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3)
-	
-#Once you're done modifying this template, you should rename it to "CMakeLists.txt"
+TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap)
--- libtuxcap-1.4.0.orig/tuxcap/pythondemo1/CMakeLists.txt
+++ libtuxcap-1.4.0/tuxcap/pythondemo1/CMakeLists.txt
@@ -1,52 +1,11 @@
-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${PYTHON_INCLUDE_PATH} ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle
-${libtuxcap_SOURCE_DIR}/tuxcap/pycap
-)
-
-#Declare any external dependencies that your project may have here.
-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java
-#If you're not sure what name to use, look in the Modules directory of your
-#cmake install and check that a file named Find(Package).cmake exists
-SET(Required_Packages
-#list packages here
-#SDL OpenGL GLU SDL_mixer
-)
-
-#this foreach loads all of the packages that you specified as required.
-#It shouldn't need to be modified.
-FOREACH(Package ${Required_Packages})
-  LOADPACKAGE(${Package})
-ENDFOREACH(Package)
-
-#Set any libraries that your project depends on.
-#examples: ITKCommon, VTKRendering, etc
-SET(Libraries
-#list libraries here
-#SDL SDL_mixer Magick++ GL GLU 
-tuxcap
-)
-
-#the following block of code is an example of how to build an executable in
-#cmake.  Unmodified, it will add an executable called "MyExe" to the project.
-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will
-#be linked to all the libraries you specified above. 
-#You can build more than one executable per project
+INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL /usr/include/python2.6/)
 
 SET(MY_SOURCES main.cpp)
 IF(APPLE)
             SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m)
 ENDIF(APPLE)
 
-SET(CurrentExe "../../pythondemo1/Pythondemo1")
+SET(CurrentExe "./Pythondemo1")
 ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES})
 
-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries})
-
-#the following line is an example of how to add a test to your project.
-#Testname is the title for this particular test.  ExecutableToRun is the
-#program which will be running this test.  It can either be a part of this
-#project or an external executable.  After that list any args that are needed
-#for this test.  Include as many tests as you like.  If your project doesn't have
-#any tests you can comment out or delete the following line.
-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3)
-	
-#Once you're done modifying this template, you should rename it to "CMakeLists.txt"
+TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap)
--- libtuxcap-1.4.0.orig/tuxcap/pythondemo2/CMakeLists.txt
+++ libtuxcap-1.4.0/tuxcap/pythondemo2/CMakeLists.txt
@@ -1,52 +1,11 @@
-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${PYTHON_INCLUDE_PATH} ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle
-${libtuxcap_SOURCE_DIR}/tuxcap/pycap
-)
-
-#Declare any external dependencies that your project may have here.
-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java
-#If you're not sure what name to use, look in the Modules directory of your
-#cmake install and check that a file named Find(Package).cmake exists
-SET(Required_Packages
-#list packages here
-#SDL OpenGL GLU SDL_mixer
-)
-
-#this foreach loads all of the packages that you specified as required.
-#It shouldn't need to be modified.
-FOREACH(Package ${Required_Packages})
-  LOADPACKAGE(${Package})
-ENDFOREACH(Package)
-
-#Set any libraries that your project depends on.
-#examples: ITKCommon, VTKRendering, etc
-SET(Libraries
-#list libraries here
-#SDL SDL_mixer Magick++ GL GLU 
-tuxcap
-)
-
-#the following block of code is an example of how to build an executable in
-#cmake.  Unmodified, it will add an executable called "MyExe" to the project.
-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will
-#be linked to all the libraries you specified above. 
-#You can build more than one executable per project
+INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL /usr/include/python2.6/)
 
 SET(MY_SOURCES main.cpp)
 IF(APPLE)
             SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m)
 ENDIF(APPLE)
 
-SET(CurrentExe "../../pythondemo2/Pythondemo2")
+SET(CurrentExe "./Pythondemo2")
 ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES})
 
-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries})
-
-#the following line is an example of how to add a test to your project.
-#Testname is the title for this particular test.  ExecutableToRun is the
-#program which will be running this test.  It can either be a part of this
-#project or an external executable.  After that list any args that are needed
-#for this test.  Include as many tests as you like.  If your project doesn't have
-#any tests you can comment out or delete the following line.
-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3)
-	
-#Once you're done modifying this template, you should rename it to "CMakeLists.txt"
+TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap)
--- libtuxcap-1.4.0.orig/tuxcap/pythondemo_template/CMakeLists.txt
+++ libtuxcap-1.4.0/tuxcap/pythondemo_template/CMakeLists.txt
@@ -1,52 +1,11 @@
-INCLUDE_DIRECTORIES(${libtuxcap_SOURCE_DIR}/tuxcap/include ${PYTHON_INCLUDE_PATH} ${libtuxcap_SOURCE_DIR}/tuxcap/chipmunk ${libtuxcap_SOURCE_DIR}/tuxcap/hgeparticle
-${libtuxcap_SOURCE_DIR}/tuxcap/pycap
-)
-
-#Declare any external dependencies that your project may have here.
-#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java
-#If you're not sure what name to use, look in the Modules directory of your
-#cmake install and check that a file named Find(Package).cmake exists
-SET(Required_Packages
-#list packages here
-#SDL OpenGL GLU SDL_mixer
-)
-
-#this foreach loads all of the packages that you specified as required.
-#It shouldn't need to be modified.
-FOREACH(Package ${Required_Packages})
-  LOADPACKAGE(${Package})
-ENDFOREACH(Package)
-
-#Set any libraries that your project depends on.
-#examples: ITKCommon, VTKRendering, etc
-SET(Libraries
-#list libraries here
-#SDL SDL_mixer Magick++ GL GLU 
-tuxcap
-)
-
-#the following block of code is an example of how to build an executable in
-#cmake.  Unmodified, it will add an executable called "MyExe" to the project.
-#MyExe will be built using the files MyClass.h and MyClass.cxx, and it will
-#be linked to all the libraries you specified above. 
-#You can build more than one executable per project
+INCLUDE_DIRECTORIES(/usr/include/tuxcap /usr/include/SDL /usr/include/python2.6/)
 
 SET(MY_SOURCES main.cpp)
 IF(APPLE)
             SET(MY_SOURCES ${MY_SOURCES} ${libtuxcap_SOURCE_DIR}/tuxcap/lib/SDLMain.m)
 ENDIF(APPLE)
 
-SET(CurrentExe "../../pythondemo_template/Pythondemo_template")
+SET(CurrentExe "./Pythondemo_template")
 ADD_EXECUTABLE(${CurrentExe} ${MY_SOURCES})
 
-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries})
-
-#the following line is an example of how to add a test to your project.
-#Testname is the title for this particular test.  ExecutableToRun is the
-#program which will be running this test.  It can either be a part of this
-#project or an external executable.  After that list any args that are needed
-#for this test.  Include as many tests as you like.  If your project doesn't have
-#any tests you can comment out or delete the following line.
-#ADD_TEST(Testname ExecutableToRun arg1 arg2 arg3)
-	
-#Once you're done modifying this template, you should rename it to "CMakeLists.txt"
+TARGET_LINK_LIBRARIES(${CurrentExe} tuxcap)
--- libtuxcap-1.4.0.orig/tuxcap/demo1/main.cpp
+++ libtuxcap-1.4.0/tuxcap/demo1/main.cpp
@@ -3,6 +3,7 @@
 using namespace Sexy;
 
 int main(int argc, char** argv) {
+	SetAppResourceFolder("/usr/share/libtuxcap-demos");
 	GameApp app;
 
 	app.Init();
--- libtuxcap-1.4.0.orig/tuxcap/demo2/main.cpp
+++ libtuxcap-1.4.0/tuxcap/demo2/main.cpp
@@ -3,6 +3,7 @@
 using namespace Sexy;
 
 int main(int argc, char** argv) {
+	SetAppResourceFolder("/usr/share/libtuxcap-demos");
 	GameApp app;
 
 	app.Init();
--- libtuxcap-1.4.0.orig/tuxcap/demo3/main.cpp
+++ libtuxcap-1.4.0/tuxcap/demo3/main.cpp
@@ -3,6 +3,7 @@
 using namespace Sexy;
 
 int main(int argc, char** argv) {
+	SetAppResourceFolder("/usr/share/libtuxcap-demos");
 	GameApp app;
 
 	app.Init();
--- libtuxcap-1.4.0.orig/tuxcap/demo4/main.cpp
+++ libtuxcap-1.4.0/tuxcap/demo4/main.cpp
@@ -3,6 +3,7 @@
 using namespace Sexy;
 
 int main(int argc, char** argv) {
+	SetAppResourceFolder("/usr/share/libtuxcap-demos");
 	GameApp app;
 
 	app.Init();
--- libtuxcap-1.4.0.orig/tuxcap/demo5/main.cpp
+++ libtuxcap-1.4.0/tuxcap/demo5/main.cpp
@@ -3,6 +3,7 @@
 using namespace Sexy;
 
 int main(int argc, char** argv) {
+	SetAppResourceFolder("/usr/share/libtuxcap-demos");
 	GameApp app;
 
 	app.Init();
--- libtuxcap-1.4.0.orig/tuxcap/hungarr/main.cpp
+++ libtuxcap-1.4.0/tuxcap/hungarr/main.cpp
@@ -3,6 +3,7 @@
 using namespace Sexy;
 
 int main(int argc, char** argv) {
+	SetAppResourceFolder("/usr/share/libtuxcap-demos");
 	GameApp app;
 
 	app.Init();
--- libtuxcap-1.4.0.orig/tuxcap/particledemo/main.cpp
+++ libtuxcap-1.4.0/tuxcap/particledemo/main.cpp
@@ -3,6 +3,7 @@
 using namespace Sexy;
 
 int main(int argc, char** argv) {
+	SetAppResourceFolder("/usr/share/libtuxcap-demos");
 	GameApp app;
 
 	app.Init();
--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo/main.cpp
+++ libtuxcap-1.4.0/tuxcap/physicsdemo/main.cpp
@@ -3,6 +3,7 @@
 using namespace Sexy;
 
 int main(int argc, char** argv) {
+	SetAppResourceFolder("/usr/share/libtuxcap-demos");
 	GameApp app;
 
 	app.Init();
--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo2/main.cpp
+++ libtuxcap-1.4.0/tuxcap/physicsdemo2/main.cpp
@@ -3,6 +3,7 @@
 using namespace Sexy;
 
 int main(int argc, char** argv) {
+	SetAppResourceFolder("/usr/share/libtuxcap-demos");
 	GameApp app;
 
 	app.Init();
--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo3/main.cpp
+++ libtuxcap-1.4.0/tuxcap/physicsdemo3/main.cpp
@@ -3,6 +3,7 @@
 using namespace Sexy;
 
 int main(int argc, char** argv) {
+	SetAppResourceFolder("/usr/share/libtuxcap-demos");
 	GameApp app;
 
 	app.Init();
--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo4/main.cpp
+++ libtuxcap-1.4.0/tuxcap/physicsdemo4/main.cpp
@@ -3,6 +3,7 @@
 using namespace Sexy;
 
 int main(int argc, char** argv) {
+	SetAppResourceFolder("/usr/share/libtuxcap-demos");
 	GameApp app;
 
 	app.Init();
--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo5/main.cpp
+++ libtuxcap-1.4.0/tuxcap/physicsdemo5/main.cpp
@@ -3,6 +3,7 @@
 using namespace Sexy;
 
 int main(int argc, char** argv) {
+	SetAppResourceFolder("/usr/share/libtuxcap-demos");
 	GameApp app;
 
 	app.Init();
--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo6/main.cpp
+++ libtuxcap-1.4.0/tuxcap/physicsdemo6/main.cpp
@@ -3,6 +3,7 @@
 using namespace Sexy;
 
 int main(int argc, char** argv) {
+	SetAppResourceFolder("/usr/share/libtuxcap-demos");
 	GameApp app;
 
 	app.Init();
--- libtuxcap-1.4.0.orig/tuxcap/physicsdemo7/main.cpp
+++ libtuxcap-1.4.0/tuxcap/physicsdemo7/main.cpp
@@ -3,6 +3,7 @@
 using namespace Sexy;
 
 int main(int argc, char** argv) {
+	SetAppResourceFolder("/usr/share/libtuxcap-demos");
 	GameApp app;
 
 	app.Init();
--- libtuxcap-1.4.0.orig/tuxcap/pythondemo1/main.cpp
+++ libtuxcap-1.4.0/tuxcap/pythondemo1/main.cpp
@@ -5,7 +5,7 @@
 int main(int argc, char** argv) {
   PycapApp app;
 
-  SetAppResourceFolder("../images");
+  SetAppResourceFolder("/usr/share/libtuxcap-demos/images");
 
   app.Init(argc, argv, false);
   app.Start();
--- libtuxcap-1.4.0.orig/tuxcap/pythondemo2/main.cpp
+++ libtuxcap-1.4.0/tuxcap/pythondemo2/main.cpp
@@ -5,7 +5,7 @@
 int main(int argc, char** argv) {
   PycapApp app;
 
-  SetAppResourceFolder("../images");
+  SetAppResourceFolder("/usr/share/libtuxcap-demos/images");
 
   app.Init(argc,argv, false);
   app.Start();
--- libtuxcap-1.4.0.orig/tuxcap/pythondemo_template/main.cpp
+++ libtuxcap-1.4.0/tuxcap/pythondemo_template/main.cpp
@@ -5,7 +5,7 @@
 int main(int argc, char** argv) {
   PycapApp app;
 
-  SetAppResourceFolder("../images");
+  SetAppResourceFolder("/usr/share/libtuxcap-demos/images");
 
   app.Init(argc,argv, false);
   app.Start();
