--- a/CMakeLists.txt Sun Aug 06 15:48:48 2006 +0000
+++ b/CMakeLists.txt Sun Aug 06 16:00:23 2006 +0000
@@ -2,8 +2,11 @@
cmake_minimum_required(VERSION 2.4.0)
+set(SHAREPATH share/hedgewars/)
+
add_subdirectory(QTfrontend)
add_subdirectory(hedgewars)
+add_subdirectory(share)
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hedgewars, a turn-based strategy")
set(CPACK_PACKAGE_VENDOR "Hedgewars")
--- a/hedgewars/CMakeLists.txt Sun Aug 06 15:48:48 2006 +0000
+++ b/hedgewars/CMakeLists.txt Sun Aug 06 16:00:23 2006 +0000
@@ -1,5 +1,3 @@
-add_subdirectory(Data)
-
set(dcc32_tryexe dcc32.exe)
set(ppc386_tryexe ppc386)
set(hwengine_project "hwengine.dpr")
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/share/CMakeLists.txt Sun Aug 06 16:00:23 2006 +0000
@@ -0,0 +1,1 @@
+add_subdirectory(hedgewars)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/share/hedgewars/CMakeLists.txt Sun Aug 06 16:00:23 2006 +0000
@@ -0,0 +1,1 @@
+add_subdirectory(Data)
--- a/share/hedgewars/Data/Fonts/CMakeLists.txt Sun Aug 06 15:48:48 2006 +0000
+++ b/share/hedgewars/Data/Fonts/CMakeLists.txt Sun Aug 06 16:00:23 2006 +0000
@@ -1,1 +1,1 @@
-install(FILES DejaVuSans.ttf DESTINATION Data/Fonts)
\ No newline at end of file
+install(FILES DejaVuSans.ttf DESTINATION ${SHAREPATH}Data/Fonts)
\ No newline at end of file
--- a/share/hedgewars/Data/Forts/CMakeLists.txt Sun Aug 06 15:48:48 2006 +0000
+++ b/share/hedgewars/Data/Forts/CMakeLists.txt Sun Aug 06 16:00:23 2006 +0000
@@ -3,4 +3,4 @@
BarrelhouseR.png
IslandL.png
IslandR.png
- DESTINATION Data/Forts)
\ No newline at end of file
+ DESTINATION ${SHAREPATH}Data/Forts)
\ No newline at end of file
--- a/share/hedgewars/Data/Graphics/CMakeLists.txt Sun Aug 06 15:48:48 2006 +0000
+++ b/share/hedgewars/Data/Graphics/CMakeLists.txt Sun Aug 06 16:00:23 2006 +0000
@@ -32,4 +32,4 @@
WindBar.png
WindL.png
WindR.png
- DESTINATION Data/Graphics)
\ No newline at end of file
+ DESTINATION ${SHAREPATH}Data/Graphics)
\ No newline at end of file
--- a/share/hedgewars/Data/Graphics/Graves/CMakeLists.txt Sun Aug 06 15:48:48 2006 +0000
+++ b/share/hedgewars/Data/Graphics/Graves/CMakeLists.txt Sun Aug 06 16:00:23 2006 +0000
@@ -3,4 +3,4 @@
coffin.png
Rip.png
Simple.png
- DESTINATION Data/Graphics/Graves)
\ No newline at end of file
+ DESTINATION ${SHAREPATH}Data/Graphics/Graves)
\ No newline at end of file
--- a/share/hedgewars/Data/Locale/CMakeLists.txt Sun Aug 06 15:48:48 2006 +0000
+++ b/share/hedgewars/Data/Locale/CMakeLists.txt Sun Aug 06 16:00:23 2006 +0000
@@ -1,4 +1,4 @@
install(FILES
en.txt
ru.txt
- DESTINATION Data/Locale)
\ No newline at end of file
+ DESTINATION ${SHAREPATH}Data/Locale)
\ No newline at end of file
--- a/share/hedgewars/Data/Sounds/CMakeLists.txt Sun Aug 06 15:48:48 2006 +0000
+++ b/share/hedgewars/Data/Sounds/CMakeLists.txt Sun Aug 06 16:00:23 2006 +0000
@@ -8,4 +8,4 @@
splash.ogg
throwpowerup.ogg
throwrelease.ogg
- DESTINATION Data/Sounds)
\ No newline at end of file
+ DESTINATION ${SHAREPATH}Data/Sounds)
\ No newline at end of file
--- a/share/hedgewars/Data/Themes/CMakeLists.txt Sun Aug 06 15:48:48 2006 +0000
+++ b/share/hedgewars/Data/Themes/CMakeLists.txt Sun Aug 06 16:00:23 2006 +0000
@@ -2,4 +2,4 @@
add_subdirectory(${dir})
endforeach(dir)
-install(FILES themes.cfg DESTINATION Data/Themes)
+install(FILES themes.cfg DESTINATION ${SHAREPATH}Data/Themes)
--- a/share/hedgewars/Data/Themes/avematan/CMakeLists.txt Sun Aug 06 15:48:48 2006 +0000
+++ b/share/hedgewars/Data/Themes/avematan/CMakeLists.txt Sun Aug 06 16:00:23 2006 +0000
@@ -8,4 +8,4 @@
Sky.png
sqrt.png
theme.cfg
- DESTINATION Data/Themes/avematan)
+ DESTINATION ${SHAREPATH}Data/Themes/avematan)
--- a/share/hedgewars/Data/Themes/bubbles/CMakeLists.txt Sun Aug 06 15:48:48 2006 +0000
+++ b/share/hedgewars/Data/Themes/bubbles/CMakeLists.txt Sun Aug 06 16:00:23 2006 +0000
@@ -5,4 +5,4 @@
round.png
Sky.png
theme.cfg
- DESTINATION Data/Themes/bubbles)
+ DESTINATION ${SHAREPATH}Data/Themes/bubbles)
--- a/share/hedgewars/Data/Themes/steel/CMakeLists.txt Sun Aug 06 15:48:48 2006 +0000
+++ b/share/hedgewars/Data/Themes/steel/CMakeLists.txt Sun Aug 06 16:00:23 2006 +0000
@@ -9,4 +9,4 @@
Sky.16.png
Sky.32.png
theme.cfg
- DESTINATION Data/Themes/steel)
+ DESTINATION ${SHAREPATH}Data/Themes/steel)
--- a/share/hedgewars/Data/Themes/tibet/CMakeLists.txt Sun Aug 06 15:48:48 2006 +0000
+++ b/share/hedgewars/Data/Themes/tibet/CMakeLists.txt Sun Aug 06 16:00:23 2006 +0000
@@ -9,4 +9,4 @@
Sky.png
ta1.png
theme.cfg
- DESTINATION Data/Themes/tibet)
+ DESTINATION ${SHAREPATH}Data/Themes/tibet)
--- a/share/hedgewars/Data/Themes/wood/CMakeLists.txt Sun Aug 06 15:48:48 2006 +0000
+++ b/share/hedgewars/Data/Themes/wood/CMakeLists.txt Sun Aug 06 16:00:23 2006 +0000
@@ -8,4 +8,4 @@
Sky.png
tree.png
theme.cfg
- DESTINATION Data/Themes/wood)
+ DESTINATION ${SHAREPATH}Data/Themes/wood)
--- a/share/hedgewars/Data/Themes/xtheme/CMakeLists.txt Sun Aug 06 15:48:48 2006 +0000
+++ b/share/hedgewars/Data/Themes/xtheme/CMakeLists.txt Sun Aug 06 16:00:23 2006 +0000
@@ -5,4 +5,4 @@
plant1.png
Sky.png
theme.cfg
- DESTINATION Data/Themes/xtheme)
+ DESTINATION ${SHAREPATH}Data/Themes/xtheme)