-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[2080,2154,irods/irods_7265] Minor reorganization + CMake TLC
- Project tree structure reorganized to match that of main irods repo. - Removed unused read_shared_memory.cpp. - Fixed some system #includes not having angle brackets. - Added quotes around paths in CMake files. - Changed all instances of CMAKE_SOURCE_DIR to CMAKE_CURRENT_SOURCE_DIR. - Removed CMAKE_SHARED_LINKER_FLAGS_INIT and CMAKE_SHARED_LINKER_FLAGS_RELEASE_INIT, as no shared libraries are built. - Added IRODS_PLUGINS_DIRECTORY to CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION. - Added CMAKE_EXE_LINKER_FLAGS_INIT and CMAKE_EXE_LINKER_FLAGS_RELEASE_INIT for unit tests. - [2080] Rewrote unit test cmake to match that of main irods repo. - [2154] Replaced curl-devel package dependency declaration with libcurl
- Loading branch information
1 parent
aaf4ad8
commit 7945cb9
Showing
29 changed files
with
310 additions
and
397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
add_library( | ||
libs3_obj | ||
OBJECT | ||
"${CMAKE_CURRENT_SOURCE_DIR}/src/bucket.c" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/src/bucket_metadata.c" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/src/error_parser.c" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/src/general.c" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/src/multipart.c" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/src/object.c" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/src/request.c" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/src/request_context.c" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/src/response_headers_handler.c" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/src/service.c" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/src/service_access_logging.c" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/src/simplexml.c" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/src/util.c" | ||
) | ||
target_link_libraries( | ||
libs3_obj | ||
PUBLIC | ||
CURL::libcurl | ||
LibXml2::LibXml2 | ||
OpenSSL::Crypto | ||
) | ||
target_include_directories( | ||
libs3_obj | ||
PUBLIC | ||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>" | ||
) | ||
target_compile_definitions( | ||
libs3_obj | ||
PRIVATE | ||
LIBS3_VER_MAJOR="4" | ||
LIBS3_VER_MINOR="1" | ||
__STRICT_ANSI__ | ||
_ISOC99_SOURCE | ||
_POSIX_C_SOURCE=200112L | ||
OPENSSL_API_COMPAT=10100 | ||
) | ||
target_compile_options( | ||
libs3_obj | ||
PRIVATE | ||
-Wshadow | ||
-Wno-unused-function # due to OPENSSL_NO_DEPRECATED_1_1_0 | ||
) | ||
set_target_properties(libs3_obj PROPERTIES POSITION_INDEPENDENT_CODE TRUE) | ||
set_target_properties(libs3_obj PROPERTIES INTERFACE_POSITION_INDEPENDENT_CODE TRUE) | ||
|
||
set_target_properties(libs3_obj PROPERTIES EXCLUDE_FROM_ALL TRUE) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.