Skip to content
Snippets Groups Projects
Commit d6519e73 authored by Corentin Chary's avatar Corentin Chary Committed by Corentin Chary
Browse files

cmake: tweak CMakeLists.txt (2.4 compatibility and install targets)

parent f3fe7af6
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required (VERSION 2.6) cmake_minimum_required (VERSION 2.4)
project (pkcs11 C) project (pkcs11 C)
...@@ -9,6 +9,8 @@ add_definitions(-Wall) ...@@ -9,6 +9,8 @@ add_definitions(-Wall)
add_library(pkcs11-proxy SHARED ${PKCS11_PROXY_SRCS}) add_library(pkcs11-proxy SHARED ${PKCS11_PROXY_SRCS})
add_executable (pkcs11-daemon ${PKCS11_DAEMON_SRCS}) add_executable (pkcs11-daemon ${PKCS11_DAEMON_SRCS})
set_target_properties(pkcs11-proxy PROPERTIES VERSION 0.1 SOVERSION 0)
if (WIN32) if (WIN32)
include_directories("ext/include") include_directories("ext/include")
...@@ -17,7 +19,10 @@ if (WIN32) ...@@ -17,7 +19,10 @@ if (WIN32)
IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/ext/lib/libdl.a) IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/ext/lib/libdl.a)
target_link_libraries (pkcs11-daemon ws2_32) target_link_libraries (pkcs11-daemon ws2_32)
target_link_libraries (pkcs11-proxy ws2_32) target_link_libraries (pkcs11-proxy ws2_32)
endif () endif (WIN32)
target_link_libraries (pkcs11-proxy pthread) target_link_libraries (pkcs11-proxy pthread)
target_link_libraries (pkcs11-daemon dl pthread) target_link_libraries (pkcs11-daemon dl pthread)
install_targets (/lib pkcs11-proxy)
install_targets (/bin pkcs11-daemon)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment