[Groonga-commit] groonga/groonga [master] cmake: support to build static library

Back to archive index

HAYASHI Kentaro null+****@clear*****
Fri Oct 5 19:26:08 JST 2012


HAYASHI Kentaro	2012-10-05 19:26:08 +0900 (Fri, 05 Oct 2012)

  New Revision: cdb518c384646c253a0b81d635de8964bc6d0956
  https://github.com/groonga/groonga/commit/cdb518c384646c253a0b81d635de8964bc6d0956

  Log:
    cmake: support to build static library

  Modified files:
    lib/CMakeLists.txt

  Modified: lib/CMakeLists.txt (+3 -0)
===================================================================
--- lib/CMakeLists.txt    2012-10-05 18:20:17 +0900 (117ea7d)
+++ lib/CMakeLists.txt    2012-10-05 19:26:08 +0900 (040cd37)
@@ -27,7 +27,9 @@ string(REGEX REPLACE "([^;]+)" "dat/\\1"
   LIBGRNDAT_SOURCES "${LIBGRNDAT_SOURCES}")
 
 add_library(libgroonga SHARED ${LIBGROONGA_SOURCES} ${LIBGRNDAT_SOURCES})
+add_library(libgroonga_static STATIC ${LIBGROONGA_SOURCES} ${LIBGRNDAT_SOURCES})
 set_target_properties(libgroonga PROPERTIES OUTPUT_NAME "groonga")
+set_target_properties(libgroonga_static PROPERTIES OUTPUT_NAME "groonga")
 target_link_libraries(libgroonga
   ${PTHREAD_LIBS}
   ${Z_LIBS}
@@ -41,3 +43,4 @@ else()
   set(LIBGROONGA_INSTALL_DIR "${LIB_DIR}")
 endif()
 install(TARGETS libgroonga DESTINATION "${LIBGROONGA_INSTALL_DIR}")
+install(TARGETS libgroonga_static DESTINATION "${LIBGROONGA_INSTALL_DIR}")
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index