X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=CMakeLists.txt;h=dfcd7743bece4f809c894179223b801c1ef2de7f;hb=b616bb8e764ca37c9e2c45e79e875ca55aab7d37;hp=4ee778fa35224cc39528f43da56bcb9ae9767b3b;hpb=1d298302d4f35ed44ab8859e98b506d948b1a0da;p=openssl-gost%2Fengine.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ee778f..dfcd774 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,17 @@ set(GOST_INCLUDE_DIRECTORIES "${OPENSSL_PATH}/include" "${OPENSSL_PATH}/crypto/i set(GOST_LINK_DIRECTORIES "${OPENSSL_PATH}") +# module linker flags +SET (CMAKE_MODULE_LINKER_FLAGS "-L${OPENSSL_PATH}" "-L${OPENSSL_PATH}/lib" $ENV{LDFLAGS} + CACHE STRING "Flags used by the linker during the creation of modules.") +# exe linker flags +SET (CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS_INIT} $ENV{LDFLAGS} + CACHE STRING "Flags used by the linker during the creation of executables.") +# shared lib linker flags +SET (CMAKE_SHARED_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS_INIT} $ENV{LDFLAGS} + CACHE STRING "Flags used by the linker during the creation of shared libraries.") + + include_directories("${GOST_INCLUDE_DIRECTORIES}") set(BIN_DIRECTORY bin)