Browse Source

Add intall path of common libary

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Nobuhiro Iwamatsu 10 years ago
parent
commit
ce1ca36c98
1 changed files with 5 additions and 1 deletions
  1. 5 1
      CMakeLists.txt

+ 5 - 1
CMakeLists.txt

@@ -219,7 +219,11 @@ endif(BUILD_SLIMLOCK)
 
 ####### install
 # slim
-install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin )
+install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)
+if (BUILD_SHARED_LIBS)
+	install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION lib)
+endif (BUILD_SHARED_LIBS)
+
 # man file
 install(FILES slim.1 DESTINATION ${MANDIR}/man1/)
 # configure