-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring headers to separate public API headers from implementatio…
…n headers
- Loading branch information
Showing
223 changed files
with
1,733 additions
and
5,127 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
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
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 |
---|---|---|
@@ -1,34 +1,32 @@ | ||
find_package( OpenSSL REQUIRED ) | ||
find_package( LibXml2 REQUIRED ) | ||
|
||
set( LIBS OpenSSL::SSL LibXml2::LibXml2 ) | ||
|
||
if( WIN32 OR MINGW ) | ||
find_package( XDR REQUIRED ) | ||
list( APPEND LIBS XDR::XDR ) | ||
else() | ||
find_package( TIRPC QUIET) | ||
if( TIRPC_FOUND ) | ||
add_definitions( -D__TIRPC__ ) | ||
endif() | ||
list( APPEND LIBS TIRPC::TIRPC ) | ||
endif() | ||
|
||
# Sources | ||
|
||
include_directories( | ||
add_library( authentication-client-objects OBJECT udaClientSSL.cpp udaClientSSL.h udaServerSSL.h ) | ||
target_link_libraries( authentication-client-objects ${LIBS} ) | ||
|
||
target_include_directories( authentication-client-objects PRIVATE | ||
${CMAKE_SOURCE_DIR}/source | ||
${OPENSSL_INCLUDE_DIR} | ||
${LIBXML2_INCLUDE_DIR} | ||
${CMAKE_SOURCE_DIR}/source/include | ||
) | ||
|
||
if( MINGW OR WIN32 ) | ||
include_directories( ${XDR_INCLUDE_DIR} ) | ||
elseif( TIRPC_FOUND ) | ||
include_directories( ${TIRPC_INCLUDE_DIR} ) | ||
endif() | ||
|
||
add_library( authentication-client-objects OBJECT udaClientSSL.cpp udaClientSSL.h udaServerSSL.h ) | ||
target_link_libraries( authentication-client-objects OpenSSL::SSL LibXml2::LibXml2 ) | ||
|
||
if( NOT CLIENT_ONLY ) | ||
add_library( authentication-server-objects OBJECT udaServerSSL.cpp udaClientSSL.h ) | ||
target_compile_definitions( authentication-server-objects PRIVATE -DSERVERBUILD ) | ||
target_link_libraries( authentication-server-objects OpenSSL::SSL LibXml2::LibXml2 ) | ||
target_link_libraries( authentication-server-objects ${LIBS} ) | ||
target_include_directories( authentication-server-objects PRIVATE | ||
${CMAKE_SOURCE_DIR}/source | ||
${CMAKE_SOURCE_DIR}/source/include | ||
) | ||
endif() |
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
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,36 @@ | ||
######################################################################################################################## | ||
# Dependencies | ||
|
||
#find_package( OpenSSL REQUIRED ) | ||
find_package( fmt REQUIRED ) | ||
#find_package( LibXml2 REQUIRED ) | ||
|
||
######################################################################################################################## | ||
# Sources | ||
|
||
set( SRC_FILES | ||
udaGetAPI.cpp | ||
clientAPI.cpp | ||
clientMDS.cpp | ||
accAPI.cpp | ||
udaPutAPI.cpp | ||
) | ||
|
||
add_library( c_api-objects OBJECT ${SRC_FILES} ) | ||
add_library( fatc_api-objects OBJECT ${SRC_FILES} ) | ||
|
||
target_link_libraries( c_api-objects PUBLIC fmt::fmt ) | ||
target_link_libraries( fatc_api-objects PUBLIC fmt::fmt ) | ||
|
||
target_compile_definitions( fatc_api-objects PUBLIC -DFATCLIENT ) | ||
|
||
target_include_directories( | ||
c_api-objects PRIVATE | ||
${CMAKE_SOURCE_DIR}/source | ||
${CMAKE_SOURCE_DIR}/source/include | ||
) | ||
target_include_directories( | ||
fatc_api-objects PRIVATE | ||
${CMAKE_SOURCE_DIR}/source | ||
${CMAKE_SOURCE_DIR}/source/include | ||
) |
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
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
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
Oops, something went wrong.