summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasn <asn@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2010-10-19 17:43:44 +0000
committerasn <asn@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2010-10-19 17:43:44 +0000
commit409cc00b7a7b2fdfe04cfe7da31b25b370a87e82 (patch)
tree06e9075277308b5e38e6ae22efcd6bd532fae9dc
parent1eecd0636a65a0922e3722e29a56a5b162a41697 (diff)
cmake: Added native-tools bulkissuance executable.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1369 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
-rw-r--r--pki/base/CMakeLists.txt1
-rw-r--r--pki/base/native-tools/CMakeLists.txt3
-rw-r--r--pki/base/native-tools/src/CMakeLists.txt1
-rw-r--r--pki/base/native-tools/src/bulkissuance/CMakeLists.txt37
4 files changed, 42 insertions, 0 deletions
diff --git a/pki/base/CMakeLists.txt b/pki/base/CMakeLists.txt
index 3b3cfe7a5..f8e6c6ff5 100644
--- a/pki/base/CMakeLists.txt
+++ b/pki/base/CMakeLists.txt
@@ -2,3 +2,4 @@ project(base)
add_subdirectory(osutil)
add_subdirectory(symkey)
+add_subdirectory(native-tools)
diff --git a/pki/base/native-tools/CMakeLists.txt b/pki/base/native-tools/CMakeLists.txt
new file mode 100644
index 000000000..0ccebe578
--- /dev/null
+++ b/pki/base/native-tools/CMakeLists.txt
@@ -0,0 +1,3 @@
+project(native-tools)
+
+add_subdirectory(src)
diff --git a/pki/base/native-tools/src/CMakeLists.txt b/pki/base/native-tools/src/CMakeLists.txt
new file mode 100644
index 000000000..e773768e2
--- /dev/null
+++ b/pki/base/native-tools/src/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory(bulkissuance)
diff --git a/pki/base/native-tools/src/bulkissuance/CMakeLists.txt b/pki/base/native-tools/src/bulkissuance/CMakeLists.txt
new file mode 100644
index 000000000..365cd601b
--- /dev/null
+++ b/pki/base/native-tools/src/bulkissuance/CMakeLists.txt
@@ -0,0 +1,37 @@
+project(bulkissuance C)
+
+set(BULKISSUANCE_PRIVATE_INCLUDE_DIRS
+ ${CMAKE_BINARY_DIR}
+ ${NSPR_INCLUDE_DIRS}
+ ${NSS_INCLUDE_DIRS}
+)
+
+set(BULKISSUANCE_LINK_LIBRARIES
+ ${NSPR_LIBRARIES}
+ ${NSS_LIBRARIES}
+)
+
+set(bulkissuance_SRCS
+ bulkissuance.c
+ getopt.c
+)
+
+include_directories(${BULKISSUANCE_PRIVATE_INCLUDE_DIRS})
+
+add_executable(bulkissuance ${bulkissuance_SRCS})
+
+target_link_libraries(bulkissuance ${BULKISSUANCE_LINK_LIBRARIES})
+
+install(
+ TARGETS bulkissuance
+ RUNTIME DESTINATION ${BIN_INSTALL_DIR}
+ LIBRARY DESTINATION ${LIB_INSTALL_DIR}
+ ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
+)
+
+install(
+ FILES
+ bulkissuance.data
+ DESTINATION
+ ${LIB_INSTALL_DIR}/pki/native-tools/
+)