X-Git-Url: https://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=CMakeLists.txt;fp=CMakeLists.txt;h=239f259ff26bf5db41513cb0510f092fe354d84b;hb=992bc72204a4a879d2094f952bcd7cddf7197606;hp=76e51b4183908f0a40bef61c7004049f157b90a6;hpb=c969f2945cf1e08f72021774ecb89ff29b9a6448;p=openssl-gost%2Fengine.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 76e51b4..239f259 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,24 @@ else() set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DL_ENDIAN") endif() +# include and lib directories for OpenSSL +set(GOST_INCLUDE_DIRECTORIES "${OPENSSL_PATH}/include") +set(GOST_LINK_DIRECTORIES "${OPENSSL_PATH}/lib") + +# module linker flags +SET (CMAKE_MODULE_LINKER_FLAGS "-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 "-L${OPENSSL_PATH}/lib" $ENV{LDFLAGS} + CACHE STRING "Flags used by the linker during the creation of executables.") +# shared lib linker flags +SET (CMAKE_SHARED_LINKER_FLAGS "-L${OPENSSL_PATH}/lib" $ENV{LDFLAGS} + CACHE STRING "Flags used by the linker during the creation of shared libraries.") + + +include_directories("${GOST_INCLUDE_DIRECTORIES}") +link_directories("${GOST_LINK_DIRECTORIES}") + set(BIN_DIRECTORY bin) set(OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/${BIN_DIRECTORY})