Fixed at https://groups.google.com/d/msg/cryptopp-users/4mZ5EZMIkeI/7-fSPZWSBQAJ
On Thursday, May 3, 2018 at 7:04:49 PM UTC+2, [email protected] wrote: > > Let me explain my problem. I wanted implement hashing function into my > project but compiler throw me lot of errors, so I wrote this question > <https://groups.google.com/forum/#!topic/cryptopp-users/4mZ5EZMIkeI>. > However it firstly doesn't seemed to be problem of CMake, but after Jeffrey > discovered > <https://groups.google.com/d/msg/cryptopp-users/4mZ5EZMIkeI/jIy_Ie5UBAAJ> > that msbuild trying to link dynamic library (no sure why, I have only > compiled static (Debug and Release) library), it now seems like it's > problem of CMake. > > Here is my CMakeLists.txt. To find the library I use FindCryptoPP.cmake > from this repository on Bitbucket > <https://bitbucket.org/sergiu/cryptopp-cmake/src>. > cmake_minimum_required (VERSION 3.10.0) > project(cryptopp-test) > add_executable(cryptopp-test cryptopp-test.cpp) > > set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}") > > set(CRYPTOPP_ROOT_DIR "C:\\libs\\cryptopp700") > set(CRYPTOPP_LIBRARY "C:\\libs\\cryptopp700") > set(CRYPTOPP_INCLUDE_DIR "C:\\libs\\cryptopp700") > > find_package(CryptoPP REQUIRED) > > if(CRYPTOPP_FOUND) > include_directories(${CRYPTOPP_INCLUDE_DIRS}) > target_link_libraries(cryptopp-test ${CRYPTOPP_LIBRARIES}) > endif() > > If I use this version of CMakeLists.txt, it doesn't work either... :/ > cmake_minimum_required (VERSION 3.10.0) > project(cryptopp-test) > add_executable(cryptopp-test cryptopp-test.cpp) > > include_directories("C:\\libs\\cryptopp700") > target_link_libraries(cryptopp-test > C:\\libs\\cryptopp700\\cryptopp\\Win32\\Output\\Debug\\cryptlib.lib) > -- You received this message because you are subscribed to "Crypto++ Users". More information about Crypto++ and this group is available at http://www.cryptopp.com and http://groups.google.com/forum/#!forum/cryptopp-users. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
