From d6519e738c02a5a88ae8233334b145258f584eda Mon Sep 17 00:00:00 2001
From: Corentin Chary <cchary@commonit.com>
Date: Fri, 12 Feb 2010 16:26:17 +0000
Subject: [PATCH] cmake: tweak CMakeLists.txt (2.4 compatibility and install
 targets)

Signed-off-by: Corentin Chary <cchary@commonit.com>
---
 CMakeLists.txt | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 24421d4..5d2737f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required (VERSION 2.6)
+cmake_minimum_required (VERSION 2.4)
 
 project (pkcs11 C)
 
@@ -9,6 +9,8 @@ add_definitions(-Wall)
 add_library(pkcs11-proxy SHARED ${PKCS11_PROXY_SRCS})
 add_executable (pkcs11-daemon ${PKCS11_DAEMON_SRCS})
 
+set_target_properties(pkcs11-proxy PROPERTIES VERSION 0.1 SOVERSION 0)
+
 if (WIN32)
   include_directories("ext/include")
 
@@ -17,7 +19,10 @@ if (WIN32)
                IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/ext/lib/libdl.a)
   target_link_libraries (pkcs11-daemon ws2_32)
   target_link_libraries (pkcs11-proxy ws2_32)
-endif ()
+endif (WIN32)
 
 target_link_libraries (pkcs11-proxy pthread)
 target_link_libraries (pkcs11-daemon dl pthread)
+
+install_targets (/lib pkcs11-proxy)
+install_targets (/bin pkcs11-daemon)
-- 
GitLab