summaryrefslogtreecommitdiffstats
path: root/kgeography
diff options
context:
space:
mode:
Diffstat (limited to 'kgeography')
-rw-r--r--kgeography/CMakeLists.txt4
-rw-r--r--kgeography/data/CMakeLists.txt11
-rw-r--r--kgeography/data/flags/CMakeLists.txt12
-rw-r--r--kgeography/data/flags/italy/CMakeLists.txt6
-rw-r--r--kgeography/icons/CMakeLists.txt1
-rw-r--r--kgeography/src/CMakeLists.txt63
-rw-r--r--kgeography/tools/CMakeLists.txt6
7 files changed, 103 insertions, 0 deletions
diff --git a/kgeography/CMakeLists.txt b/kgeography/CMakeLists.txt
new file mode 100644
index 00000000..f54e982b
--- /dev/null
+++ b/kgeography/CMakeLists.txt
@@ -0,0 +1,4 @@
+add_subdirectory( src )
+add_subdirectory( data )
+add_subdirectory( icons )
+add_subdirectory( tools )
diff --git a/kgeography/data/CMakeLists.txt b/kgeography/data/CMakeLists.txt
new file mode 100644
index 00000000..f744e549
--- /dev/null
+++ b/kgeography/data/CMakeLists.txt
@@ -0,0 +1,11 @@
+add_subdirectory( flags )
+
+##### other data
+
+file( GLOB _pngs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.png )
+file( GLOB _kgms RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.kgm )
+
+install(
+ FILES ${_pngs} ${_kgms}
+ DESTINATION ${DATA_INSTALL_DIR}/kgeography/
+)
diff --git a/kgeography/data/flags/CMakeLists.txt b/kgeography/data/flags/CMakeLists.txt
new file mode 100644
index 00000000..50e33a6b
--- /dev/null
+++ b/kgeography/data/flags/CMakeLists.txt
@@ -0,0 +1,12 @@
+add_subdirectory( italy )
+#add_subdirectory( svg )
+
+
+##### other data
+
+file( GLOB _pics RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.png )
+
+install(
+ FILES ${_pics}
+ DESTINATION ${DATA_INSTALL_DIR}/kgeography/flags
+)
diff --git a/kgeography/data/flags/italy/CMakeLists.txt b/kgeography/data/flags/italy/CMakeLists.txt
new file mode 100644
index 00000000..d11bdb54
--- /dev/null
+++ b/kgeography/data/flags/italy/CMakeLists.txt
@@ -0,0 +1,6 @@
+file( GLOB _pics RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.png )
+
+install(
+ FILES ${_pics}
+ DESTINATION ${DATA_INSTALL_DIR}/kgeography/flags/italy
+)
diff --git a/kgeography/icons/CMakeLists.txt b/kgeography/icons/CMakeLists.txt
new file mode 100644
index 00000000..7f5f44b4
--- /dev/null
+++ b/kgeography/icons/CMakeLists.txt
@@ -0,0 +1 @@
+tde_install_icons( kgeography )
diff --git a/kgeography/src/CMakeLists.txt b/kgeography/src/CMakeLists.txt
new file mode 100644
index 00000000..e1d0b88d
--- /dev/null
+++ b/kgeography/src/CMakeLists.txt
@@ -0,0 +1,63 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### kgeography (executable)
+
+tde_add_executable( kgeography AUTOMOC
+
+ SOURCES
+ main.cpp
+ mapwidget.cpp
+ division.cpp
+ map.cpp
+ mapparser.cpp
+ kgeography.cpp
+ mapchooser.cpp
+ mypopup.cpp
+ popupmanager.cpp
+ flagdivisionasker.cpp
+ askwidget.cpp
+ mapasker.cpp
+ capitaldivisionasker.cpp
+ divisioncapitalasker.cpp
+ boxasker.cpp
+ divisionflagasker.cpp
+ answer.cpp
+ answersdialog.cpp
+ settings.kcfgc
+ LINK
+ tdecore-shared
+ tdeui-shared
+ tdeio-shared
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data
+
+install(
+ FILES kgeographyui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kgeography
+)
+
+install(
+ FILES kgeography.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install(
+ FILES kgeography.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
+)
diff --git a/kgeography/tools/CMakeLists.txt b/kgeography/tools/CMakeLists.txt
new file mode 100644
index 00000000..06b54e08
--- /dev/null
+++ b/kgeography/tools/CMakeLists.txt
@@ -0,0 +1,6 @@
+
+install(
+ PROGRAMS gen_map.pl
+ DESTINATION ${BIN_INSTALL_DIR}
+ RENAME kgeography_gen_map.pl
+)