summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorRoberto C. Sanchez <roberto@connexer.com>2014-10-21 22:48:19 -0400
committerRoberto C. Sanchez <roberto@connexer.com>2014-10-21 22:48:19 -0400
commit1af3b165c9377702ca62a64112bc089a6f575c30 (patch)
tree4df9cca5543b2cab5ca56dbb1214d7d3b1f291e3 /cmake
parent5b5fd0dce407556f98ed8edee89dc830bf1437b1 (diff)
Imported Upstream version 2.0~beta2
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindCLucene.cmake121
-rw-r--r--cmake/FindLibraryWithDebug.cmake117
-rw-r--r--cmake/FindSword.cmake120
-rw-r--r--cmake/bibletime_source_list.cmake283
-rw-r--r--cmake/cmake_uninstall.cmake.in25
-rw-r--r--cmake/config.h.cmake15
-rw-r--r--cmake/docs/docs.xsl5
-rw-r--r--cmake/docs/docs_freebsd.xsl5
-rw-r--r--cmake/docs/handbook_po4a.conf14
-rw-r--r--cmake/docs/howto_po4a.conf12
-rw-r--r--cmake/platforms/linux/bibletime.desktop.cmake23
-rw-r--r--cmake/platforms/macos/BibleTime.icnsbin0 -> 285941 bytes
-rw-r--r--cmake/platforms/macos/Info.plist10
-rw-r--r--cmake/platforms/macos/bt_start.sh21
14 files changed, 771 insertions, 0 deletions
diff --git a/cmake/FindCLucene.cmake b/cmake/FindCLucene.cmake
new file mode 100644
index 0000000..1a1fb45
--- /dev/null
+++ b/cmake/FindCLucene.cmake
@@ -0,0 +1,121 @@
+#
+# SOURCE: http://websvn.kde.org/trunk/kdesupport/strigi/cmake/FindCLucene.cmake?view=log
+#
+# ONE FIX: /usr/lib64 added to work on Fedora
+#
+
+
+#
+# This module looks for clucene (http://clucene.sf.net) support
+# It will define the following values
+#
+# CLUCENE_INCLUDE_DIR = where CLucene/StdHeader.h can be found
+# CLUCENE_LIBRARY_DIR = where CLucene/clucene-config.h can be found
+# CLUCENE_LIBRARY = the library to link against CLucene
+# CLUCENE_VERSION = The CLucene version string
+# CLucene_FOUND = set to 1 if clucene is found
+#
+
+INCLUDE(CheckSymbolExists)
+INCLUDE(FindLibraryWithDebug)
+
+if(NOT CLUCENE_MIN_VERSION)
+ set(CLUCENE_MIN_VERSION "0.9.19")
+endif(NOT CLUCENE_MIN_VERSION)
+
+IF(EXISTS ${PROJECT_CMAKE}/CLuceneConfig.cmake)
+ INCLUDE(${PROJECT_CMAKE}/CLuceneConfig.cmake)
+ENDIF(EXISTS ${PROJECT_CMAKE}/CLuceneConfig.cmake)
+
+IF(MSVC)
+ IF(CMAKE_BUILD_TYPE STREQUAL "Release")
+ SET(WIN_CLUCENE_SEARCH_PATH ../clucene-core-0.9.21b/src/CLucene/Release)
+ ELSE(CMAKE_BUILD_TYPE STREQUAL "Release")
+ SET(WIN_CLUCENE_SEARCH_PATH ../clucene-core-0.9.21b/src/CLucene/debug)
+ ENDIF(CMAKE_BUILD_TYPE STREQUAL "Release")
+ SET(WIN_CLUCENE_INCLUDE_PATH ../clucene-core-0.9.21b/src)
+ELSE(MSVC)
+ SET(WIN_CLUCENE_SEARCH_PATH "")
+ SET(WIN_CLUCENE_INCLUDE_PATH "")
+ENDIF(MSVC)
+
+SET(TRIAL_LIBRARY_PATHS
+ $ENV{CLUCENE_HOME}/lib${LIB_SUFFIX}
+ ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}
+ /usr/local/lib${LIB_SUFFIX}
+ /opt/local/lib${LIB_SUFFIX}
+ /usr/lib${LIB_SUFFIX}
+ /usr/lib64
+ /sw/lib${LIB_SUFFIX}
+ /usr/pkg/lib${LIB_SUFFIX}
+ ${WIN_CLUCENE_SEARCH_PATH}
+ )
+SET(TRIAL_INCLUDE_PATHS
+ $ENV{CLUCENE_HOME}/include
+ ${CMAKE_INSTALL_PREFIX}/include
+ /usr/local/include
+ /usr/include
+ /sw/include
+ /usr/pkg/include
+ ${WIN_CLUCENE_INCLUDE_PATH}
+ )
+FIND_LIBRARY_WITH_DEBUG(CLUCENE_LIBRARY
+ NAMES clucene clucene-core
+ PATHS ${TRIAL_LIBRARY_PATHS})
+IF (CLUCENE_LIBRARY)
+ MESSAGE(STATUS "Found CLucene library: ${CLUCENE_LIBRARY}")
+ENDIF (CLUCENE_LIBRARY)
+FIND_PATH(CLUCENE_INCLUDE_DIR
+ NAMES CLucene.h
+ PATHS ${TRIAL_INCLUDE_PATHS})
+
+IF (CLUCENE_INCLUDE_DIR)
+ MESSAGE(STATUS "Found CLucene include dir: ${CLUCENE_INCLUDE_DIR}")
+ENDIF (CLUCENE_INCLUDE_DIR)
+
+IF(WIN32)
+ SET(TRIAL_LIBRARY_PATHS ${CLUCENE_INCLUDE_DIR})
+ENDIF(WIN32)
+
+SET(CLUCENE_GOOD_VERSION TRUE)
+
+FIND_PATH(CLUCENE_LIBRARY_DIR
+ NAMES CLucene/clucene-config.h PATHS ${TRIAL_LIBRARY_PATHS} ${TRIAL_INCLUDE_PATHS} NO_DEFAULT_PATH)
+IF (CLUCENE_LIBRARY_DIR)
+ MESSAGE(STATUS "Found CLucene library dir: ${CLUCENE_LIBRARY_DIR}")
+ FILE(READ ${CLUCENE_LIBRARY_DIR}/CLucene/clucene-config.h CLCONTENT)
+ STRING(REGEX MATCH "_CL_VERSION +\".*\"" CLMATCH ${CLCONTENT})
+ IF (CLMATCH)
+ STRING(REGEX REPLACE "_CL_VERSION +\"(.*)\"" "\\1" CLUCENE_VERSION ${CLMATCH})
+ IF (CLUCENE_VERSION STRLESS "${CLUCENE_MIN_VERSION}")
+ MESSAGE(ERROR " CLucene version ${CLUCENE_VERSION} is less than the required minimum ${CLUCENE_MIN_VERSION}")
+ SET(CLUCENE_GOOD_VERSION FALSE)
+ ENDIF (CLUCENE_VERSION STRLESS "${CLUCENE_MIN_VERSION}")
+ IF (CLUCENE_VERSION STREQUAL "0.9.17")
+ MESSAGE(ERROR "CLucene version 0.9.17 is not supported.")
+ SET(CLUCENE_GOOD_VERSION FALSE)
+ ENDIF (CLUCENE_VERSION STREQUAL "0.9.17")
+ ENDIF (CLMATCH)
+ELSE (CLUCENE_LIBRARY_DIR)
+ MESSAGE(STATUS "CLucene library dir not found.")
+ENDIF (CLUCENE_LIBRARY_DIR)
+
+IF(CLUCENE_INCLUDE_DIR AND CLUCENE_LIBRARY AND CLUCENE_LIBRARY_DIR AND CLUCENE_GOOD_VERSION)
+ SET(CLucene_FOUND TRUE)
+ENDIF(CLUCENE_INCLUDE_DIR AND CLUCENE_LIBRARY AND CLUCENE_LIBRARY_DIR AND CLUCENE_GOOD_VERSION)
+
+IF(CLucene_FOUND)
+ IF(NOT CLucene_FIND_QUIETLY)
+ MESSAGE(STATUS "Found CLucene: ${CLUCENE_LIBRARY}")
+ ENDIF(NOT CLucene_FIND_QUIETLY)
+ELSE(CLucene_FOUND)
+ IF(CLucene_FIND_REQUIRED)
+ MESSAGE(FATAL_ERROR "Could not find CLucene.")
+ ENDIF(CLucene_FIND_REQUIRED)
+ENDIF(CLucene_FOUND)
+
+MARK_AS_ADVANCED(
+ CLUCENE_INCLUDE_DIR
+ CLUCENE_LIBRARY_DIR
+ CLUCENE_LIBRARY
+ )
diff --git a/cmake/FindLibraryWithDebug.cmake b/cmake/FindLibraryWithDebug.cmake
new file mode 100644
index 0000000..0844a1e
--- /dev/null
+++ b/cmake/FindLibraryWithDebug.cmake
@@ -0,0 +1,117 @@
+#
+# SOURCE KDE4 cmake additional files
+#
+
+#
+# FIND_LIBRARY_WITH_DEBUG
+# -> enhanced FIND_LIBRARY to allow the search for an
+# optional debug library with a WIN32_DEBUG_POSTFIX similar
+# to CMAKE_DEBUG_POSTFIX when creating a shared lib
+# it has to be the second and third argument
+
+# Copyright (c) 2007, Christian Ehrlicher, <ch.ehrlicher@gmx.de>
+# Redistribution and use is allowed according to the terms of the BSD license.
+# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+
+MACRO(FIND_LIBRARY_WITH_DEBUG var_name win32_dbg_postfix_name dgb_postfix libname)
+
+ IF(NOT "${win32_dbg_postfix_name}" STREQUAL "WIN32_DEBUG_POSTFIX")
+
+ # no WIN32_DEBUG_POSTFIX -> simply pass all arguments to FIND_LIBRARY
+ FIND_LIBRARY(${var_name}
+ ${win32_dbg_postfix_name}
+ ${dgb_postfix}
+ ${libname}
+ ${ARGN}
+ )
+
+ ELSE(NOT "${win32_dbg_postfix_name}" STREQUAL "WIN32_DEBUG_POSTFIX")
+
+ IF(NOT WIN32)
+ # on non-win32 we don't need to take care about WIN32_DEBUG_POSTFIX
+
+ FIND_LIBRARY(${var_name} ${libname} ${ARGN})
+
+ ELSE(NOT WIN32)
+
+ # 1. get all possible libnames
+ SET(args ${ARGN})
+ SET(newargs "")
+ SET(libnames_release "")
+ SET(libnames_debug "")
+
+ LIST(LENGTH args listCount)
+
+ IF("${libname}" STREQUAL "NAMES")
+ SET(append_rest 0)
+ LIST(APPEND args " ")
+
+ FOREACH(i RANGE ${listCount})
+ LIST(GET args ${i} val)
+
+ IF(append_rest)
+ LIST(APPEND newargs ${val})
+ ELSE(append_rest)
+ IF("${val}" STREQUAL "PATHS")
+ LIST(APPEND newargs ${val})
+ SET(append_rest 1)
+ ELSE("${val}" STREQUAL "PATHS")
+ LIST(APPEND libnames_release "${val}")
+ LIST(APPEND libnames_debug "${val}${dgb_postfix}")
+ ENDIF("${val}" STREQUAL "PATHS")
+ ENDIF(append_rest)
+
+ ENDFOREACH(i)
+
+ ELSE("${libname}" STREQUAL "NAMES")
+
+ # just one name
+ LIST(APPEND libnames_release "${libname}")
+ LIST(APPEND libnames_debug "${libname}${dgb_postfix}")
+
+ SET(newargs ${args})
+
+ ENDIF("${libname}" STREQUAL "NAMES")
+
+ # search the release lib
+ FIND_LIBRARY(${var_name}_RELEASE
+ NAMES ${libnames_release}
+ ${newargs}
+ )
+
+ # search the debug lib
+ FIND_LIBRARY(${var_name}_DEBUG
+ NAMES ${libnames_debug}
+ ${newargs}
+ )
+
+ IF(${var_name}_RELEASE AND ${var_name}_DEBUG)
+
+ # both libs found
+ SET(${var_name} optimized ${${var_name}_RELEASE}
+ debug ${${var_name}_DEBUG})
+
+ ELSE(${var_name}_RELEASE AND ${var_name}_DEBUG)
+
+ IF(${var_name}_RELEASE)
+
+ # only release found
+ SET(${var_name} ${${var_name}_RELEASE})
+
+ ELSE(${var_name}_RELEASE)
+
+ # only debug (or nothing) found
+ SET(${var_name} ${${var_name}_DEBUG})
+
+ ENDIF(${var_name}_RELEASE)
+
+ ENDIF(${var_name}_RELEASE AND ${var_name}_DEBUG)
+
+ MARK_AS_ADVANCED(${var_name}_RELEASE)
+ MARK_AS_ADVANCED(${var_name}_DEBUG)
+
+ ENDIF(NOT WIN32)
+
+ ENDIF(NOT "${win32_dbg_postfix_name}" STREQUAL "WIN32_DEBUG_POSTFIX")
+
+ENDMACRO(FIND_LIBRARY_WITH_DEBUG)
diff --git a/cmake/FindSword.cmake b/cmake/FindSword.cmake
new file mode 100644
index 0000000..0df6618
--- /dev/null
+++ b/cmake/FindSword.cmake
@@ -0,0 +1,120 @@
+SET (REQUIRED_SWORD_VERSION 1.5.9)
+SET (SIMPLE_RENDER_SWORD_VERSION 1.5.10)
+SET (MULTIVERSE_SWORD_VERSION 1.5.11.1)
+SET (SYSCONF_CHANGED_SWORD_VERSION 1.5.11.98)
+SET (INTERNET_WARNING_SWORD_VERSION 1.5.11.98)
+
+# This module looks for installed sword
+#
+# It will define the following values
+# SWORD_INCLUDE_DIR
+# SWORD_LIBS
+
+IF (WIN32)
+
+ SET(TRIAL_LIBRARY_PATHS
+ $ENV{SWORD_HOME}/lib${LIB_SUFFIX}
+ ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}
+ /usr/lib${LIB_SUFFIX}
+ /usr/local/lib${LIB_SUFFIX}
+ /sw/lib${LIB_SUFFIX}
+ ../sword-1.5.11/lib/vcppmake/vc8/ICUDebug
+ ../sword-1.5.11/lib/vcppmake/vc8/ICURelease
+ )
+ SET(TRIAL_INCLUDE_PATHS
+ $ENV{SWORD_HOME}/include/sword
+ $ENV{SWORD_HOME}/include
+ ${CMAKE_INSTALL_PREFIX}/include/sword
+ ${CMAKE_INSTALL_PREFIX}/include
+ /sw/include
+ ../sword-1.5.11/include
+ )
+
+ FIND_LIBRARY(SWORD_LIBRARY sword
+ NAMES libsword
+ PATHS ${TRIAL_LIBRARY_PATHS})
+ IF (SWORD_LIBRARY)
+ MESSAGE(STATUS "Found Sword library: ${SWORD_LIBRARY}")
+ ENDIF (SWORD_LIBRARY)
+ FIND_PATH(SWORD_INCLUDE_DIR
+ NAMES swmgr.h
+ PATHS ${TRIAL_INCLUDE_PATHS})
+
+ IF (SWORD_INCLUDE_DIR)
+ MESSAGE(STATUS "Found Sword include dir: ${SWORD_INCLUDE_DIR}")
+ ENDIF (SWORD_INCLUDE_DIR)
+
+ELSE(WIN32)
+
+ EXECUTE_PROCESS(COMMAND pkg-config --atleast-version=${REQUIRED_SWORD_VERSION} sword
+ RESULT_VARIABLE SWORD_VERSION_OK
+ )
+ EXECUTE_PROCESS(COMMAND pkg-config --atleast-version=${SIMPLE_RENDER_SWORD_VERSION} sword
+ RESULT_VARIABLE SIMPLE_RENDER_SWORD_OK
+ )
+ EXECUTE_PROCESS(COMMAND pkg-config --atleast-version=${MULTIVERSE_SWORD_VERSION} sword
+ RESULT_VARIABLE MULTIVERSE_SWORD_OK
+ )
+ EXECUTE_PROCESS(COMMAND pkg-config --atleast-version=${SYSCONF_CHANGED_SWORD_VERSION} sword
+ RESULT_VARIABLE SYSCONF_CHANGED_SWORD_OK
+ )
+ EXECUTE_PROCESS(COMMAND pkg-config --atleast-version=${INTERNET_WARNING_SWORD_VERSION} sword
+ RESULT_VARIABLE INTERNET_WARNING_SWORD_OK
+ )
+
+
+ EXECUTE_PROCESS(COMMAND pkg-config --modversion sword
+ OUTPUT_VARIABLE SWORD_VERSION
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+ )
+
+ IF (SWORD_VERSION_OK EQUAL 0)
+
+ MESSAGE(STATUS "Sword version ${SWORD_VERSION} is ok")
+
+ EXECUTE_PROCESS(COMMAND pkg-config --variable=includedir sword
+ OUTPUT_VARIABLE SWORD_INCLUDE_DIR
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+ )
+ SET(SWORD_INCLUDE_DIR "${SWORD_INCLUDE_DIR}/sword")
+ MESSAGE(STATUS "Sword include directory is ${SWORD_INCLUDE_DIR}")
+
+ EXECUTE_PROCESS(COMMAND pkg-config --libs sword
+ OUTPUT_VARIABLE SWORD_LIBS
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+ )
+ MESSAGE(STATUS "Sword lib linker flags to be used: ${SWORD_LIBS}")
+
+ ELSE (SWORD_VERSION_OK EQUAL 0)
+
+ IF (SWORD_VERSION)
+ MESSAGE(FATAL_ERROR "Sword version ${SWORD_VERSION} does not match the required ${REQUIRED_SWORD_VERSION}")
+ ELSE (SWORD_VERSION)
+ MESSAGE(FATAL_ERROR "Sword not found")
+ ENDIF (SWORD_VERSION)
+
+ ENDIF (SWORD_VERSION_OK EQUAL 0)
+
+ENDIF (WIN32)
+
+
+IF (MULTIVERSE_SWORD_OK EQUAL 0)
+ SET (SWORD_CFLAGS "${SWORD_CFLAGS} -DSWORD_MULTIVERSE")
+ENDIF (MULTIVERSE_SWORD_OK EQUAL 0)
+IF (SIMPLE_RENDER_SWORD_OK EQUAL 0)
+ SET (SWORD_CFLAGS "${SWORD_CFLAGS} -DSWORD_SIMPLERENDER")
+ENDIF (SIMPLE_RENDER_SWORD_OK EQUAL 0)
+IF (SYSCONF_CHANGED_SWORD_OK EQUAL 0)
+ SET (SWORD_CFLAGS "${SWORD_CFLAGS} -DSWORD_SYSCONF_CHANGED")
+ENDIF (SYSCONF_CHANGED_SWORD_OK EQUAL 0)
+IF (INTERNET_WARNING_SWORD_OK EQUAL 0)
+ SET (SWORD_CFLAGS "${SWORD_CFLAGS} -DSWORD_INTERNET_WARNING")
+ENDIF (INTERNET_WARNING_SWORD_OK EQUAL 0)
+
+MARK_AS_ADVANCED(
+ SWORD_INCLUDE_DIR
+ SWORD_LIBS
+ SWORD_CFLAGS
+)
+
+MESSAGE(STATUS "SWORD_CFLAGS: ${SWORD_CFLAGS}")
diff --git a/cmake/bibletime_source_list.cmake b/cmake/bibletime_source_list.cmake
new file mode 100644
index 0000000..c3ac1da
--- /dev/null
+++ b/cmake/bibletime_source_list.cmake
@@ -0,0 +1,283 @@
+
+
+SET(bibletime_UIS
+ src/frontend/display/bthtmlfindtext.ui
+)
+
+SET(bibletime_SOURCES
+ #backend filters
+ src/backend/filters/bt_gbfhtml.cpp
+ src/backend/filters/bt_osishtml.cpp
+ src/backend/filters/bt_plainhtml.cpp
+ src/backend/filters/bt_thmlhtml.cpp
+ src/backend/filters/bt_thmlplain.cpp
+ src/backend/filters/osismorphsegmentation.cpp
+ #backend rendering
+ src/backend/rendering/cbookdisplay.cpp
+ src/backend/rendering/cchapterdisplay.cpp
+ src/backend/rendering/cdisplayrendering.cpp
+ src/backend/rendering/centrydisplay.cpp
+ src/backend/rendering/chtmlexportrendering.cpp
+ src/backend/rendering/cplaintextexportrendering.cpp
+ src/backend/rendering/ctextrendering.cpp
+ #backend managers
+ src/backend/managers/btstringmgr.cpp
+ src/backend/managers/cdisplaytemplatemgr.cpp
+ src/backend/managers/clanguagemgr.cpp
+ src/backend/managers/creferencemanager.cpp
+ src/backend/managers/cswordbackend.cpp
+ #backend module drivers
+ src/backend/drivers/cswordmoduleinfo.cpp
+ src/backend/drivers/cswordbiblemoduleinfo.cpp
+ src/backend/drivers/cswordbookmoduleinfo.cpp
+ src/backend/drivers/cswordcommentarymoduleinfo.cpp
+ src/backend/drivers/cswordlexiconmoduleinfo.cpp
+ #backend keys
+ src/backend/keys/cswordkey.cpp
+ src/backend/keys/cswordldkey.cpp
+ src/backend/keys/cswordtreekey.cpp
+ src/backend/keys/cswordversekey.cpp
+ #backend config
+ src/backend/config/cbtconfig.cpp
+ #backend
+ src/backend/cswordmodulesearch.cpp
+ src/backend/btmoduletreeitem.cpp
+
+ #utilities
+ src/util/cresmgr.cpp
+ src/util/cpointers.cpp
+ src/util/ctoolclass.cpp
+ src/util/dialogutil.cpp
+ src/util/directoryutil.cpp
+ src/util/migrationutil.cpp
+
+ # frontend top level
+ src/frontend/cdragdrop.cpp
+ src/frontend/crossrefrendering.cpp
+ src/frontend/cprinter.cpp
+ src/frontend/cmoduleindexdialog.cpp
+ src/frontend/cmdiarea.cpp
+ src/frontend/cinfodisplay.cpp
+ src/frontend/cinputdialog.cpp
+ src/frontend/cexportmanager.cpp
+ src/frontend/btaboutmoduledialog.cpp
+ src/frontend/cmodulechooserdialog.cpp
+
+ # Bookshelf/Bookmarks widget in main window
+ src/frontend/mainindex/cmainindex.cpp
+
+ src/frontend/mainindex/bookmarks/cbookmarkindex.cpp
+ src/frontend/mainindex/bookmarks/btbookmarkloader.cpp
+ src/frontend/mainindex/bookmarks/btbookmarkitembase.cpp
+ src/frontend/mainindex/bookmarks/btbookmarkitem.cpp
+ src/frontend/mainindex/bookmarks/btbookmarkfolder.cpp
+
+ src/frontend/mainindex/bookshelf/cbookshelfindex.cpp
+ src/frontend/mainindex/bookshelf/btindexitem.cpp
+ src/frontend/mainindex/bookshelf/btindexmodule.cpp
+ src/frontend/mainindex/bookshelf/btindexfolder.cpp
+ src/frontend/mainindex/bookshelf/chidemodulechooserdialog.cpp
+
+ #Settings dialog (configuration)
+# src/frontend/settingsdialogs/cacceleratorsettings.cpp #DISABLED
+ src/frontend/settingsdialogs/cdisplaysettings.cpp
+ src/frontend/settingsdialogs/cswordsettings.cpp
+ src/frontend/settingsdialogs/clanguagesettings.cpp
+ src/frontend/settingsdialogs/cconfigurationdialog.cpp
+ src/frontend/settingsdialogs/cfontchooser.cpp
+ src/frontend/settingsdialogs/clistwidget.cpp
+
+ #Bookshelf manager frontend
+ src/frontend/bookshelfmanager/cswordsetupinstallsourcesdialog.cpp
+ src/frontend/bookshelfmanager/btconfigdialog.cpp
+ src/frontend/bookshelfmanager/btmodulemanagerdialog.cpp
+ src/frontend/bookshelfmanager/instbackend.cpp
+ src/frontend/bookshelfmanager/btinstallmgr.cpp
+
+ src/frontend/bookshelfmanager/installpage/btinstallpage.cpp
+ src/frontend/bookshelfmanager/installpage/btinstallthread.cpp
+ src/frontend/bookshelfmanager/installpage/btinstallprogressdialog.cpp
+ src/frontend/bookshelfmanager/installpage/btsourcewidget.cpp
+ src/frontend/bookshelfmanager/installpage/btsourcearea.cpp
+ src/frontend/bookshelfmanager/installpage/btinstallmodulechooserdialog.cpp
+ src/frontend/bookshelfmanager/installpage/btinstallpathdialog.cpp
+
+ src/frontend/bookshelfmanager/removepage/btremovepage.cpp
+ src/frontend/bookshelfmanager/indexpage/btindexpage.cpp
+
+ #Search dialog
+ src/frontend/searchdialog/csearchdialog.cpp
+ src/frontend/searchdialog/csearchresultview.cpp
+ src/frontend/searchdialog/btsearchresultarea.cpp
+ src/frontend/searchdialog/btsearchoptionsarea.cpp
+ src/frontend/searchdialog/chistorycombobox.cpp
+ src/frontend/searchdialog/cmoduleresultview.cpp
+ src/frontend/searchdialog/csearchmodulechooserdialog.cpp
+ src/frontend/searchdialog/crangechooserdialog.cpp
+ src/frontend/searchdialog/analysis/csearchanalysisitem.cpp
+ src/frontend/searchdialog/analysis/csearchanalysislegenditem.cpp
+ src/frontend/searchdialog/analysis/csearchanalysisscene.cpp
+ src/frontend/searchdialog/analysis/csearchanalysisview.cpp
+ src/frontend/searchdialog/analysis/csearchanalysisdialog.cpp
+
+ #Profile manager frontend
+ src/frontend/profile/cprofilemgr.cpp
+ src/frontend/profile/cprofilewindow.cpp
+ src/frontend/profile/cprofile.cpp
+
+ #frontend keychooser widgets
+ src/frontend/keychooser/ckeychooser.cpp
+ src/frontend/keychooser/cbookkeychooser.cpp
+ src/frontend/keychooser/cbooktreechooser.cpp
+ src/frontend/keychooser/clexiconkeychooser.cpp
+ src/frontend/keychooser/ckeychooserwidget.cpp
+ src/frontend/keychooser/cscrollerwidgetset.cpp
+ src/frontend/keychooser/cscrollbutton.cpp
+
+ src/frontend/keychooser/versekeychooser/btdropdownchooserbutton.cpp
+ src/frontend/keychooser/versekeychooser/cbiblekeychooser.cpp
+ src/frontend/keychooser/versekeychooser/ckeyreferencewidget.cpp
+ src/frontend/keychooser/versekeychooser/btversekeymenu.cpp
+
+ src/frontend/keychooser/bthistory.cpp
+
+ #behaviour for display areas
+ src/frontend/display/bthtmlfindtext.cpp
+ src/frontend/display/bthtmljsobject.cpp
+ src/frontend/display/bthtmlreaddisplay.cpp
+ src/frontend/display/cdisplay.cpp
+ src/frontend/display/creaddisplay.cpp
+ src/frontend/display/cwritedisplay.cpp
+ src/frontend/display/cplainwritedisplay.cpp
+ src/frontend/display/chtmlwritedisplay.cpp
+ src/frontend/display/btfontsizewidget.cpp
+ src/frontend/display/btcolorwidget.cpp
+
+ #display windows and their widgets
+ src/frontend/displaywindow/bttoolbarpopupaction.cpp
+ src/frontend/displaywindow/btactioncollection.cpp
+ src/frontend/displaywindow/cmodulechooserbutton.cpp
+ src/frontend/displaywindow/cmodulechooserbar.cpp
+ src/frontend/displaywindow/cbuttons.cpp
+ src/frontend/displaywindow/cdisplaywindow.cpp
+ src/frontend/displaywindow/creadwindow.cpp
+ src/frontend/displaywindow/cwritewindow.cpp
+ src/frontend/displaywindow/cplainwritewindow.cpp
+ src/frontend/displaywindow/chtmlwritewindow.cpp
+ src/frontend/displaywindow/clexiconreadwindow.cpp
+ src/frontend/displaywindow/cbiblereadwindow.cpp
+ src/frontend/displaywindow/ccommentaryreadwindow.cpp
+ src/frontend/displaywindow/cbookreadwindow.cpp
+ src/frontend/displaywindow/cdisplaywindowfactory.cpp
+
+ # web based tab dialogs
+ src/frontend/htmldialogs/btaboutdialog.cpp
+ src/frontend/htmldialogs/bttabhtmldialog.cpp
+
+ #toplevel files
+ src/bibletime_init.cpp
+ src/bibletime_slots.cpp
+ src/bibletime_dbus.cpp
+ src/bibletime.cpp
+ src/bibletimeapp.cpp
+ src/bibletime_dbus_adaptor.cpp
+ src/main.cpp
+)
+
+# mocable headers
+SET(bibletime_MOCABLE_HEADERS
+ src/backend/drivers/cswordmoduleinfo.h
+ src/backend/managers/cswordbackend.h
+ src/backend/cswordmodulesearch.h
+ src/bibletime.h
+ src/bibletime_dbus_adaptor.h
+ src/frontend/searchdialog/csearchmodulechooserdialog.h
+ src/frontend/searchdialog/crangechooserdialog.h
+ src/frontend/searchdialog/btsearchresultarea.h
+ src/frontend/searchdialog/btsearchoptionsarea.h
+ src/frontend/searchdialog/cmoduleresultview.h
+ src/frontend/searchdialog/csearchdialog.h
+ src/frontend/searchdialog/analysis/csearchanalysisdialog.h
+ src/frontend/searchdialog/analysis/csearchanalysisscene.h
+ src/frontend/searchdialog/csearchresultview.h
+ src/frontend/searchdialog/chistorycombobox.h
+ src/frontend/cdragdrop.h
+ src/frontend/mainindex/bookshelf/chidemodulechooserdialog.h
+ src/frontend/mainindex/bookshelf/cbookshelfindex.h
+ src/frontend/mainindex/cmainindex.h
+ src/frontend/mainindex/bookmarks/cbookmarkindex.h
+ src/frontend/cmdiarea.h
+ src/frontend/cinfodisplay.h
+ src/frontend/cinputdialog.h
+ src/frontend/cmodulechooserdialog.h
+ src/frontend/keychooser/cscrollerwidgetset.h
+ src/frontend/keychooser/cbooktreechooser.h
+ src/frontend/keychooser/versekeychooser/btversekeymenu.h
+ src/frontend/keychooser/versekeychooser/cbiblekeychooser.h
+ src/frontend/keychooser/versekeychooser/ckeyreferencewidget.h
+ src/frontend/keychooser/versekeychooser/btdropdownchooserbutton.h
+ src/frontend/keychooser/cscrollbutton.h
+ src/frontend/keychooser/bthistory.h
+ src/frontend/keychooser/ckeychooserwidget.h
+ src/frontend/keychooser/cbookkeychooser.h
+ src/frontend/keychooser/ckeychooser.h
+ src/frontend/keychooser/clexiconkeychooser.h
+ src/frontend/cprinter.h
+ src/frontend/btaboutmoduledialog.h
+ src/frontend/htmldialogs/bttabhtmldialog.h
+ src/frontend/htmldialogs/btaboutdialog.h
+ src/frontend/display/cdisplay.h
+ src/frontend/display/bthtmlreaddisplay.h
+ src/frontend/display/btfontsizewidget.h
+ src/frontend/display/btcolorwidget.h
+ src/frontend/display/bthtmljsobject.h
+ src/frontend/display/chtmlwritedisplay.h
+ src/frontend/display/bthtmlfindtext.h
+ src/frontend/cmoduleindexdialog.h
+ src/frontend/settingsdialogs/cdisplaysettings.h
+ src/frontend/settingsdialogs/cswordsettings.h
+ src/frontend/settingsdialogs/clistwidget.h
+ src/frontend/settingsdialogs/cconfigurationdialog.h
+ #src/frontend/settingsdialogs/cacceleratorsettings.h.OFF
+ src/frontend/settingsdialogs/cfontchooser.h
+ src/frontend/settingsdialogs/clanguagesettings.h
+ src/frontend/displaywindow/cbookreadwindow.h
+ src/frontend/displaywindow/ccommentaryreadwindow.h
+ src/frontend/displaywindow/cmodulechooserbar.h
+ src/frontend/displaywindow/clexiconreadwindow.h
+ src/frontend/displaywindow/chtmlwritewindow.h
+ src/frontend/displaywindow/bttoolbarpopupaction.h
+ src/frontend/displaywindow/btactioncollection.h
+ src/frontend/displaywindow/creadwindow.h
+ src/frontend/displaywindow/cmodulechooserbutton.h
+ src/frontend/displaywindow/cbuttons.h
+ src/frontend/displaywindow/cbiblereadwindow.h
+ src/frontend/displaywindow/cplainwritewindow.h
+ src/frontend/displaywindow/cdisplaywindow.h
+ src/frontend/displaywindow/cwritewindow.h
+ src/frontend/bookshelfmanager/btconfigdialog.h
+ src/frontend/bookshelfmanager/removepage/btremovepage.h
+ src/frontend/bookshelfmanager/cswordsetupinstallsourcesdialog.h
+ src/frontend/bookshelfmanager/installpage/btsourcewidget.h
+ src/frontend/bookshelfmanager/installpage/btinstallpage.h
+ src/frontend/bookshelfmanager/installpage/btsourcearea.h
+ src/frontend/bookshelfmanager/installpage/btinstallmodulechooserdialog.h
+ src/frontend/bookshelfmanager/installpage/btinstallprogressdialog.h
+ src/frontend/bookshelfmanager/installpage/btinstallpathdialog.h
+ src/frontend/bookshelfmanager/installpage/btinstallthread.h
+ src/frontend/bookshelfmanager/btmodulemanagerdialog.h
+ src/frontend/bookshelfmanager/indexpage/btindexpage.h
+ src/frontend/bookshelfmanager/btinstallmgr.h
+)
+
+#unit tests
+SET(bibletime_test_SOURCES
+ #main file
+ src/tests/bibletime_test.cpp
+ #frontend
+ src/tests/backend/config/cbtconfig_test.cpp
+)
+
+SET(bibletime_test_MOCABLE_HEADERS
+ src/tests/bibletime_test.h
+)
diff --git a/cmake/cmake_uninstall.cmake.in b/cmake/cmake_uninstall.cmake.in
new file mode 100644
index 0000000..d429814
--- /dev/null
+++ b/cmake/cmake_uninstall.cmake.in
@@ -0,0 +1,25 @@
+#
+#CODE TAKEN FROM http://www.cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F
+#
+
+IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
+ MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
+ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
+
+FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
+STRING(REGEX REPLACE "\n" ";" files "${files}")
+FOREACH(file ${files})
+ MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
+ IF(EXISTS "$ENV{DESTDIR}${file}")
+ EXEC_PROGRAM(
+ "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
+ OUTPUT_VARIABLE rm_out
+ RETURN_VALUE rm_retval
+ )
+ IF(NOT "${rm_retval}" STREQUAL 0)
+ MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
+ ENDIF(NOT "${rm_retval}" STREQUAL 0)
+ ELSE(EXISTS "$ENV{DESTDIR}${file}")
+ MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
+ ENDIF(EXISTS "$ENV{DESTDIR}${file}")
+ENDFOREACH(file) \ No newline at end of file
diff --git a/cmake/config.h.cmake b/cmake/config.h.cmake
new file mode 100644
index 0000000..721e8a4
--- /dev/null
+++ b/cmake/config.h.cmake
@@ -0,0 +1,15 @@
+/*********
+*
+* This file is part of BibleTime's source code, http://www.bibletime.info/.
+*
+* Copyright 1999-2008 by the BibleTime developers.
+* The BibleTime source code is licensed under the GNU General Public License version 2.0.
+*
+**********/
+
+#ifndef CONFIG_H_CMAKE
+#define CONFIG_H_CMAKE
+
+#define BT_VERSION "${BT_VERSION}"
+
+#endif //CONFIG_H_CMAKE
diff --git a/cmake/docs/docs.xsl b/cmake/docs/docs.xsl
new file mode 100644
index 0000000..ab44e09
--- /dev/null
+++ b/cmake/docs/docs.xsl
@@ -0,0 +1,5 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:import href="/usr/share/xml/docbook/stylesheet/nwalsh/html/chunk.xsl"/>
+ <xsl:param name="use.id.as.filename" select="1"/>
+</xsl:stylesheet>
diff --git a/cmake/docs/docs_freebsd.xsl b/cmake/docs/docs_freebsd.xsl
new file mode 100644
index 0000000..81a2190
--- /dev/null
+++ b/cmake/docs/docs_freebsd.xsl
@@ -0,0 +1,5 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:import href="/usr/local/share/xsl/docbook/html/chunk.xsl"/>
+ <xsl:param name="use.id.as.filename" select="1"/>
+</xsl:stylesheet>
diff --git a/cmake/docs/handbook_po4a.conf b/cmake/docs/handbook_po4a.conf
new file mode 100644
index 0000000..96c485a
--- /dev/null
+++ b/cmake/docs/handbook_po4a.conf
@@ -0,0 +1,14 @@
+#
+# Configuration file for "po4a"
+#
+# If you modify the language list here, make sure you also modify CMakeLists.txt
+#
+
+[po4a_langs] cs de fi fr hu nl
+[po4a_paths] i18n/handbook/handbook.pot $lang:i18n/handbook/handbook-$lang.po
+[type: docbook] docs/handbook/en/docbook/hdbk-config.docbook $lang:docs/handbook/$lang/docbook/hdbk-config.docbook
+[type: docbook] docs/handbook/en/docbook/hdbk-intro.docbook $lang:docs/handbook/$lang/docbook/hdbk-intro.docbook
+[type: docbook] docs/handbook/en/docbook/hdbk-operation.docbook $lang:docs/handbook/$lang/docbook/hdbk-operation.docbook
+[type: docbook] docs/handbook/en/docbook/hdbk-reference.docbook $lang:docs/handbook/$lang/docbook/hdbk-reference.docbook
+[type: docbook] docs/handbook/en/docbook/hdbk-start.docbook $lang:docs/handbook/$lang/docbook/hdbk-start.docbook
+[type: docbook] docs/handbook/en/docbook/index.docbook $lang:docs/handbook/$lang/docbook/index.docbook
diff --git a/cmake/docs/howto_po4a.conf b/cmake/docs/howto_po4a.conf
new file mode 100644
index 0000000..5ec4739
--- /dev/null
+++ b/cmake/docs/howto_po4a.conf
@@ -0,0 +1,12 @@
+#
+# Configuration file for "po4a"
+#
+# If you modify the language list here, make sure you also modify CMakeLists.txt
+#
+
+[po4a_langs] bg cs de fi fr it hu ko nl pt-br ru
+[po4a_paths] i18n/howto/howto.pot $lang:i18n/howto/howto-$lang.po
+[type: docbook] docs/howto/en/docbook/howto-basics.docbook $lang:docs/howto/$lang/docbook/howto-basics.docbook
+[type: docbook] docs/howto/en/docbook/howto-importance.docbook $lang:docs/howto/$lang/docbook/howto-importance.docbook
+[type: docbook] docs/howto/en/docbook/howto-interpretation.docbook $lang:docs/howto/$lang/docbook/howto-interpretation.docbook
+[type: docbook] docs/howto/en/docbook/index.docbook $lang:docs/howto/$lang/docbook/index.docbook
diff --git a/cmake/platforms/linux/bibletime.desktop.cmake b/cmake/platforms/linux/bibletime.desktop.cmake
new file mode 100644
index 0000000..a668d0b
--- /dev/null
+++ b/cmake/platforms/linux/bibletime.desktop.cmake
@@ -0,0 +1,23 @@
+[Desktop Entry]
+Comment=An easy to use bible study tool
+Comment[C]=An easy to use bible study tool
+Comment[cs]=Snadno pouiteln n�troj pro studium Bible
+Comment[da]=Et letanvendeligt bibelstudieprogram
+Comment[de]=Ein einfach zu benutzendes Bibelprogramm
+Comment[fr]=Un outil d'�ude biblique facile �utiliser
+Exec=bibletime
+Icon=bibletime
+MimeType=
+Name=BibleTime ${BT_VERSION}
+Name[C]=BibleTime ${BT_VERSION}
+Name[cs]=BibleTime ${BT_VERSION}
+Name[da]=Bibletime ${BT_VERSION}
+Name[de]=BibleTime ${BT_VERSION}
+Name[fr]=BibleTime ${BT_VERSION}
+GenericName=Bible Study Tool
+Terminal=false
+Type=Application
+X-KDE-SubstituteUID=false
+X-KDE-Username=
+Categories=X-Bible;X-Religion;Literature;Art;Education;Utility;KDE;Qt;
+DocPath=bibletime/handbook/index.html
diff --git a/cmake/platforms/macos/BibleTime.icns b/cmake/platforms/macos/BibleTime.icns
new file mode 100644
index 0000000..7160d04
--- /dev/null
+++ b/cmake/platforms/macos/BibleTime.icns
Binary files differ
diff --git a/cmake/platforms/macos/Info.plist b/cmake/platforms/macos/Info.plist
new file mode 100644
index 0000000..5d69434
--- /dev/null
+++ b/cmake/platforms/macos/Info.plist
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleIconFile</key>
+ <string>BibleTime.icns</string>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+</dict>
+</plist>
diff --git a/cmake/platforms/macos/bt_start.sh b/cmake/platforms/macos/bt_start.sh
new file mode 100644
index 0000000..ad3128a
--- /dev/null
+++ b/cmake/platforms/macos/bt_start.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+# Author: Gregory Hellings
+# Copyright: BibleTime development team
+# Initial creation date: 23 April 2009
+# This is a Mac-only shell script that makes it possible for us to avoid having to run
+# lots of annoying commands on the Qt frameworks for the Mac build of BibleTime.
+# It is inspired and draws heavily from th example at http://www.cmake.org/Wiki/CMake:CPackPackageGenerators
+
+BT_BUNDLE="`echo "$0" | sed -e 's/\/Contents\/MacOS\/BibleTime//'`"
+
+echo "running $0"
+echo "BT_BUNDLE: $BT_BUNDLE"
+
+export DYLD_LIBRARY_PATH=$BT_BUNDLE/Contents/Resources/Library
+export DYLD_FRAMEWORK_PATH=$BT_BUNDLE/Contents/Resources/Library/Frameworks
+export PATH=$BT_BUNDLE/Contents/Resources/bin:$PATH
+export QT_PLUGIN_PATH=$BT_BUNDLE/Contents/plugins
+
+cd $BT_BUNDLE/Contents/Resources/bin
+# Run BibleTime
+exec "BibleTime"