Skip to content

Commit

Permalink
add exporters directory
Browse files Browse the repository at this point in the history
Signed-off-by: Fs <[email protected]>
  • Loading branch information
Fsu0413 committed Dec 30, 2023
1 parent f959df8 commit 6adaa9c
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 15 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ add_subdirectory(ssl)
add_subdirectory(apps)
add_subdirectory(engines)
add_subdirectory(tools)
add_subdirectory(exporters)
#if (BUILD_TESTING)
# add_subdirectory(test)
#endif()
Expand Down
5 changes: 0 additions & 5 deletions apps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,6 @@ install(FILES ${CMAKE_SOURCE_DIR}/openssl/apps/openssl.cnf
DESTINATION ${OPENSSL_OPENSSLDIR}
)

configure_file(openssl.pc.cmake.in openssl.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/openssl.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
)

if (NOT WIN32)
configure_file(${CMAKE_SOURCE_DIR}/openssl/apps/CA.sh CA.sh COPYONLY)
endif()
Expand Down
5 changes: 0 additions & 5 deletions crypto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -706,11 +706,6 @@ install(DIRECTORY ${CMAKE_BINARY_DIR}/include/openssl
TYPE INCLUDE
)

# issue: can't specify zlib path, especially for the condition that zlib is found by CMake but can't be found by pkgconfig
configure_file(libcrypto.pc.cmake.in libcrypto.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libcrypto.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
)

#if (BUILD_TESTING)
# foreach (_DIRECTORY IN LISTS LIBCRYPTO_DIRECTORIES)
Expand Down
17 changes: 17 additions & 0 deletions exporters/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@


# issue: can't specify zlib path, especially for the condition that zlib is found by CMake but can't be found by pkgconfig
configure_file(pkg-config/libcrypto.pc.cmake.in libcrypto.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libcrypto.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
)

configure_file(pkg-config/libssl.pc.cmake.in libssl.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libssl.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
)

configure_file(pkg-config/openssl.pc.cmake.in openssl.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/openssl.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions ssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,6 @@ install(TARGETS ssl
ARCHIVE
)

configure_file(libssl.pc.cmake.in libssl.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libssl.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
)

#if (BUILD_TESTING)
# if (WIN32 AND BUILD_SHARED_LIBS)
# add_custom_command(OUTPUT "${CMAKE_BINARY_DIR}/ssl/libeay32.dll"
Expand Down

0 comments on commit 6adaa9c

Please sign in to comment.