diff options
| -rw-r--r-- | pki/base/native-tools/src/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | pki/base/native-tools/src/setpin/CMakeLists.txt | 43 |
2 files changed, 44 insertions, 0 deletions
diff --git a/pki/base/native-tools/src/CMakeLists.txt b/pki/base/native-tools/src/CMakeLists.txt index 82ca94708..db52afeab 100644 --- a/pki/base/native-tools/src/CMakeLists.txt +++ b/pki/base/native-tools/src/CMakeLists.txt @@ -1,3 +1,4 @@ add_subdirectory(bulkissuance) add_subdirectory(p7tool) add_subdirectory(revoker) +add_subdirectory(setpin) diff --git a/pki/base/native-tools/src/setpin/CMakeLists.txt b/pki/base/native-tools/src/setpin/CMakeLists.txt new file mode 100644 index 000000000..c10402782 --- /dev/null +++ b/pki/base/native-tools/src/setpin/CMakeLists.txt @@ -0,0 +1,43 @@ +project(setpin C) + +find_package(MozLDAP REQUIRED) + +set(SETPIN_PRIVATE_INCLUDE_DIRS + ${CMAKE_BINARY_DIR} + ${NSPR_INCLUDE_DIRS} + ${NSS_INCLUDE_DIRS} + ${MOZLDAP_INCLUDE_DIRS} +) + +set(SETPIN_LINK_LIBRARIES + ${NSPR_LIBRARIES} + ${NSS_LIBRARIES} + ${MOZLDAP_LIBRARIES} +) + +set(setpin_SRCS + b64.c + options.c + setpin.c + setpin_options.c +) + +include_directories(${SETPIN_PRIVATE_INCLUDE_DIRS}) + +add_executable(setpin ${setpin_SRCS}) + +target_link_libraries(setpin ${SETPIN_LINK_LIBRARIES}) + +install( + TARGETS setpin + RUNTIME DESTINATION ${BIN_INSTALL_DIR} + LIBRARY DESTINATION ${LIB_INSTALL_DIR} + ARCHIVE DESTINATION ${LIB_INSTALL_DIR} +) + +install( + FILES + setpin.conf + DESTINATION + ${LIB_INSTALL_DIR}/pki/native-tools/ +) |
