[sword-svn] r3035 - in trunk: . examples/tasks

scribe at crosswire.org scribe at crosswire.org
Thu Feb 27 22:20:27 MST 2014


Author: scribe
Date: 2014-02-27 22:20:26 -0700 (Thu, 27 Feb 2014)
New Revision: 3035

Added:
   trunk/examples/tasks/CMakeLists.txt
Modified:
   trunk/CMakeLists.txt
Log:
feeble attempt to add CMake files. hope it works. ghellings?


Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt	2014-02-28 05:17:25 UTC (rev 3034)
+++ trunk/CMakeLists.txt	2014-02-28 05:20:26 UTC (rev 3035)
@@ -270,6 +270,7 @@
 
 IF(SWORD_BUILD_EXAMPLES STREQUAL "Yes")
 	ADD_SUBDIRECTORY("${CMAKE_CURRENT_SOURCE_DIR}/examples/cmdline")
+	ADD_SUBDIRECTORY("${CMAKE_CURRENT_SOURCE_DIR}/examples/tasks")
 ENDIF(SWORD_BUILD_EXAMPLES STREQUAL "Yes")
 
 ##############################################################################################

Added: trunk/examples/tasks/CMakeLists.txt
===================================================================
--- trunk/examples/tasks/CMakeLists.txt	                        (rev 0)
+++ trunk/examples/tasks/CMakeLists.txt	2014-02-28 05:20:26 UTC (rev 3035)
@@ -0,0 +1,15 @@
+##################################################################################
+# These are some examples.  If you want examples to be built, you need to define
+# SWORD_BUILD_EXAMPLES="Yes".  These will not be installed, so don't worry about
+# that.
+# 
+MESSAGE(STATUS "\n-- CONFIGURING LIBRARY EXAMPLES")
+SET(example_PROGRAMS
+	parallelbibles
+)
+
+FOREACH(DEMO ${example_PROGRAMS})
+	ADD_EXECUTABLE("${DEMO}"	"${DEMO}.cpp")
+	TARGET_LINK_LIBRARIES("${DEMO}" sword)
+ENDFOREACH(DEMO ${example_PROGRAMS})
+




More information about the sword-cvs mailing list