--- tddl/CMakeLists.txt.orig	2010-07-06 06:21:20.000000000 +0900
+++ tddl/CMakeLists.txt	2010-12-11 04:00:11.868033375 +0900
@@ -5,18 +5,21 @@
 
 set(tddl_SRCS "tddl.c" "tddl.h")
 add_library(tddl SHARED ${tddl_SRCS})
+add_library(tddlStatic STATIC ${tddl_SRCS})
 if(UNIX)
-  set_target_properties(tddl PROPERTIES SOVERSION "1.2"
+  set_target_properties(tddl PROPERTIES SOVERSION "1"
     VERSION "1.2.${${PROJECT_NAME}_VERSION_MAJOR}.${${PROJECT_NAME}_VERSION_MINOR}")
+  set_target_properties(tddlStatic PROPERTIES OUTPUT_NAME tddl)
 elseif(WIN32)
   set_target_properties(tddl PROPERTIES OUTPUT_NAME ifxtpm)
   set_target_properties(tddl PROPERTIES PREFIX "")
-endif()
+endif(UNIX)
 
 install(TARGETS tddl DESTINATION lib)
+install(TARGETS tddlStatic DESTINATION lib)
 install(FILES "tddl.h" DESTINATION include)
 
 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
 add_executable(test_tddl test_tddl.c)
-target_link_libraries(test_tddl tddl)
+target_link_libraries(test_tddl tddlStatic)
 
