Browse Source

Fix install path of library and add install slimlock

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

+ 7 - 2
CMakeLists.txt

@@ -219,9 +219,14 @@ endif(BUILD_SLIMLOCK)
 
 ####### install
 # slim
-install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)
+install(TARGETS slim RUNTIME DESTINATION bin)
+install(TARGETS slimlock RUNTIME DESTINATION bin)
+
 if (BUILD_SHARED_LIBS)
-	install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION lib)
+	install(TARGETS slim_common
+		LIBRARY DESTINATION lib
+		ARCHIVE DESTINATION lib
+	)
 endif (BUILD_SHARED_LIBS)
 
 # man file