File tree Expand file tree Collapse file tree 3 files changed +28
-49
lines changed
Expand file tree Collapse file tree 3 files changed +28
-49
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,12 @@ SET(GLIB2_INCLUDE_DIRS $ENV{WIRESHARK_INCLUDE_DIRS})
5151ENDIF ()
5252include_directories (${WIRESHARK_INCLUDE_DIRS} )
5353
54- IF (NOT DEFINED CRYPTO_INCLUDE_DIR )
55- find_package (Crypto )
54+ IF (NOT DEFINED GCRYPT_INCLUDE_DIR )
55+ find_package (Gcrypt )
5656ELSE ()
57- SET (GLIB2_INCLUDE_DIRS $ENV{CRYPTO_INCLUDE_DIR } )
57+ SET (GLIB2_INCLUDE_DIRS $ENV{GCRYPT_INCLUDE_DIR } )
5858ENDIF ()
59- include_directories (${CRYPTO_INCLUDE_DIR } )
59+ include_directories (${GCRYPT_INCLUDE_DIR } )
6060
6161set (LINK_MODE_LIB SHARED)
6262set (LINK_MODE_MODULE MODULE)
@@ -101,7 +101,7 @@ set_target_properties(whatsapp PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
101101IF (DEFINED MANUAL_LINK)
102102target_link_libraries (whatsapp )
103103ELSE ()
104- target_link_libraries (whatsapp crypto )
104+ target_link_libraries (whatsapp gcrypt )
105105ENDIF ()
106106
107107install (TARGETS whatsapp
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # Copyright (C) 2011 Felix Geyer <debfx@fobos.de>
2+ #
3+ # This program is free software: you can redistribute it and/or modify
4+ # it under the terms of the GNU General Public License as published by
5+ # the Free Software Foundation, either version 2 or (at your option)
6+ # version 3 of the License.
7+ #
8+ # This program is distributed in the hope that it will be useful,
9+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+ # GNU General Public License for more details.
12+ #
13+ # You should have received a copy of the GNU General Public License
14+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15+
16+ find_path (GCRYPT_INCLUDE_DIR gcrypt.h )
17+
18+ find_library (GCRYPT_LIBRARIES gcrypt )
19+
20+ include (FindPackageHandleStandardArgs )
21+ find_package_handle_standard_args (Gcrypt DEFAULT_MSG GCRYPT_LIBRARIES GCRYPT_INCLUDE_DIR)
22+
23+ mark_as_advanced (GCRYPT_LIBRARIES GCRYPT_INCLUDE_DIR )
You can’t perform that action at this time.
0 commit comments