Permalink
Browse files

Added DistributedObjects, Fnmatch and HttpClient to CMake.

  • Loading branch information...
jeremytregunna committed May 5, 2010
1 parent 2a4687d commit 2125fe4df7fbf8f60903fee4cbef40f55a86b870
View
@@ -31,14 +31,14 @@ add_subdirectory(CGI)
add_subdirectory(ContinuedFraction)
#add_subdirectory(Curses)
#add_subdirectory(DBI)
-#add_subdirectory(DistributedObjects)
+add_subdirectory(DistributedObjects)
#add_subdirectory(EditLine)
#add_subdirectory(Flux)
-#add_subdirectory(Fnmatch)
+add_subdirectory(Fnmatch)
#add_subdirectory(Font)
#add_subdirectory(GLFW)
#add_subdirectory(GoogleSearch)
-#add_subdirectory(HttpClient)
+add_subdirectory(HttpClient)
#add_subdirectory(Image)
#add_subdirectory(LZO)
#add_subdirectory(LibSndFile)
@@ -0,0 +1,21 @@
+# Base Io build system
+# Written by Jeremy Tregunna <jeremy.tregunna@me.com>
+#
+# Builds the DistributedObjects addon
+
+# Create the _build bundle hierarchy if needed.
+make_build_bundle(_build)
+
+# Output our dynamic library to the top-level _build hierarchy
+set(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/_build/dll)
+
+# Our library sources.
+file(GLOB SRCS "${CMAKE_CURRENT_SOURCE_DIR}/source/*.c")
+
+# Now build the shared library
+add_library(IoDistributedObjects SHARED ${SRCS})
+add_dependencies(IoDistributedObjects iovmall)
+target_link_libraries(IoDistributedObjects iovmall)
+
+# Install the addon to our global addons hierarchy.
+install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/io/addons)
@@ -0,0 +1,21 @@
+# Base Io build system
+# Written by Jeremy Tregunna <jeremy.tregunna@me.com>
+#
+# Builds the Fnmatch addon
+
+# Create the _build bundle hierarchy if needed.
+make_build_bundle(_build)
+
+# Output our dynamic library to the top-level _build hierarchy
+set(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/_build/dll)
+
+# Our library sources.
+file(GLOB SRCS "${CMAKE_CURRENT_SOURCE_DIR}/source/*.c")
+
+# Now build the shared library
+add_library(IoFnmatch SHARED ${SRCS})
+add_dependencies(IoFnmatch iovmall)
+target_link_libraries(IoFnmatch iovmall)
+
+# Install the addon to our global addons hierarchy.
+install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/io/addons)
@@ -0,0 +1,21 @@
+# Base Io build system
+# Written by Jeremy Tregunna <jeremy.tregunna@me.com>
+#
+# Builds the HttpClient addon
+
+# Create the _build bundle hierarchy if needed.
+make_build_bundle(_build)
+
+# Output our dynamic library to the top-level _build hierarchy
+set(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/_build/dll)
+
+# Our library sources.
+file(GLOB SRCS "${CMAKE_CURRENT_SOURCE_DIR}/source/*.c")
+
+# Now build the shared library
+add_library(IoHttpClient SHARED ${SRCS})
+add_dependencies(IoHttpClient iovmall)
+target_link_libraries(IoHttpClient iovmall)
+
+# Install the addon to our global addons hierarchy.
+install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/io/addons)

0 comments on commit 2125fe4

Please sign in to comment.