basic signing capabilities - initial implementation, lots of kinks to work out
parent
c733bb634c
commit
9642581509
|
@ -16,6 +16,14 @@ find_package(OpenSSL REQUIRED)
|
|||
# Find LibArchive
|
||||
find_package(LibArchive REQUIRED)
|
||||
|
||||
# Find GPGME
|
||||
find_path(GPGME_INCLUDE_DIR gpgme.h)
|
||||
find_library(GPGME_LIBRARY NAMES gpgme)
|
||||
|
||||
if(NOT GPGME_INCLUDE_DIR OR NOT GPGME_LIBRARY)
|
||||
message(FATAL_ERROR "GPGME library not found. Please install libgpgme-dev or equivalent package.")
|
||||
endif()
|
||||
|
||||
# Module version - used by DPM
|
||||
add_library(build MODULE
|
||||
build.cpp
|
||||
|
@ -42,10 +50,11 @@ target_include_directories(build PRIVATE
|
|||
${DPM_ROOT_DIR}
|
||||
${OPENSSL_INCLUDE_DIR}
|
||||
${LibArchive_INCLUDE_DIRS}
|
||||
${GPGME_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
# Link with filesystem library and OpenSSL
|
||||
target_link_libraries(build stdc++fs ${OPENSSL_LIBRARIES} ${LibArchive_LIBRARIES})
|
||||
# Link with libraries
|
||||
target_link_libraries(build stdc++fs ${OPENSSL_LIBRARIES} ${LibArchive_LIBRARIES} ${GPGME_LIBRARY})
|
||||
|
||||
# Standalone version - used for debugging
|
||||
add_executable(build_standalone
|
||||
|
@ -69,10 +78,11 @@ target_include_directories(build_standalone PRIVATE
|
|||
${DPM_ROOT_DIR}
|
||||
${OPENSSL_INCLUDE_DIR}
|
||||
${LibArchive_INCLUDE_DIRS}
|
||||
${GPGME_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
# Link with filesystem library and OpenSSL for standalone
|
||||
target_link_libraries(build_standalone stdc++fs ${OPENSSL_LIBRARIES} ${LibArchive_LIBRARIES})
|
||||
# Link with libraries for standalone
|
||||
target_link_libraries(build_standalone stdc++fs ${OPENSSL_LIBRARIES} ${LibArchive_LIBRARIES} ${GPGME_LIBRARY})
|
||||
|
||||
# Set the output name for the standalone executable
|
||||
set_target_properties(
|
||||
|
|
Loading…
Reference in New Issue