Index: tddl/CMakeLists.txt |
diff --git a/tddl/CMakeLists.txt b/tddl/CMakeLists.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1d69b44a6e4f2f8f9cfb48c1f5b9f6b8045a700f |
--- /dev/null |
+++ b/tddl/CMakeLists.txt |
@@ -0,0 +1,22 @@ |
+# Software-based Trusted Platform Module (TPM) Emulator |
+# Copyright (C) 2004-2010 Mario Strasser <mast@gmx.net> |
+# |
+# $Id: CMakeLists.txt 409 2010-02-19 12:28:44Z mast $ |
+ |
+set(tddl_SRCS "tddl.c" "tddl.h") |
+add_library(tddl SHARED ${tddl_SRCS}) |
+if(UNIX) |
+ set_target_properties(tddl PROPERTIES SOVERSION "1.2" |
+ VERSION "1.2.${${PROJECT_NAME}_VERSION_MAJOR}.${${PROJECT_NAME}_VERSION_MINOR}") |
+elseif(WIN32) |
+ set_target_properties(tddl PROPERTIES OUTPUT_NAME ifxtpm) |
+ set_target_properties(tddl PROPERTIES PREFIX "") |
+endif() |
+ |
+install(TARGETS tddl 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) |
+ |