@ -116,21 +116,45 @@ endif()
# L i b r a r y h e a d e r s
file ( GLOB cryptopp_HEADERS cryptopp/*.h )
# L i b r a r y s o u r c e s . Y o u c a n u s e t h e G N U m a k e f i l e t o g e n e r a t e t h e l i s t : ` m a k e s o u r c e s ` .
file ( GLOB cryptopp_SOURCES cryptopp/*.cpp )
list ( REMOVE_ITEM cryptopp_SOURCES
# T h e s e a r e r e m o v e d i n t h e o r i g i n a l C M a k e L i s t s . t x t
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / c r y p t o p p / p c h . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / c r y p t o p p / s i m p l e . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / c r y p t o p p / w i n p i p e s . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / c r y p t o p p / c r y p t l i b _ b d s . c p p
$ { c r y p t o p p _ S O U R C E S _ T E S T }
# L i b r a r y s o u r c e s .
# T h e s e h a v e b e e n t r i m m e d t o i n c l u d e o n l y t h i n g s C i t r a u s e s . T h i s s p e e d s u p
# c o m p i l e s a n d r e d u c e s t h e a m o u n t o f c o m p i l a t i o n b r e a k a g e .
set ( cryptopp_SOURCES
c r y p t o p p / a l g p a r a m . c p p
c r y p t o p p / a s n . c p p
c r y p t o p p / a u t h e n c . c p p
c r y p t o p p / b a s e c o d e . c p p
c r y p t o p p / c c m . c p p
c r y p t o p p / c p u . c p p
c r y p t o p p / c r y p t l i b . c p p
c r y p t o p p / d l l . c p p
c r y p t o p p / e c 2 n . c p p
c r y p t o p p / e c p . c p p
c r y p t o p p / f i l t e r s . c p p
c r y p t o p p / f i p s 1 4 0 . c p p
c r y p t o p p / g f 2 n . c p p
c r y p t o p p / g f p c r y p t . c p p
c r y p t o p p / h e x . c p p
c r y p t o p p / h m a c . c p p
c r y p t o p p / h r t i m e r . c p p
c r y p t o p p / i n t e g e r . c p p
c r y p t o p p / i t e r h a s h . c p p
c r y p t o p p / m d 5 . c p p
c r y p t o p p / m i s c . c p p
c r y p t o p p / m o d e s . c p p
c r y p t o p p / m q u e u e . c p p
c r y p t o p p / n b t h e o r y . c p p
c r y p t o p p / o a e p . c p p
c r y p t o p p / o s r n g . c p p
c r y p t o p p / p u b k e y . c p p
c r y p t o p p / q u e u e . c p p
c r y p t o p p / r a n d p o o l . c p p
c r y p t o p p / r d t a b l e s . c p p
c r y p t o p p / r i j n d a e l . c p p
c r y p t o p p / r n g . c p p
c r y p t o p p / s h a . c p p
)
if ( MINGW OR WIN32 )
list ( APPEND cryptopp_SOURCES ${ CMAKE_CURRENT_SOURCE_DIR } /cryptopp/winpipes.cpp )
endif ( )
if ( MSVC AND NOT CRYPTOPP_DISABLE_ASM )
if ( ${ CMAKE_GENERATOR } MATCHES ".*ARM" )
message ( STATUS "Disabling ASM because ARM is specified as target platform." )
@ -160,9 +184,5 @@ target_include_directories(cryptopp INTERFACE .)
# T h i r d - p a r t y l i b r a r i e s
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
if ( WIN32 )
target_link_libraries ( cryptopp PRIVATE ws2_32 )
endif ( )
find_package ( Threads )
target_link_libraries ( cryptopp PRIVATE ${ CMAKE_THREAD_LIBS_INIT } )