summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorprotomors <protomors@gmail.com>2018-06-12 20:26:27 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-07-12 18:09:25 +0300
commit073240e12516713abc88de22c0d598e4e78454b8 (patch)
tree64010209d221c6779258f25b22b1fede74ec3cde /CMakeLists.txt
parent7db552400ebad470365c95c81ba8cfbaef51d599 (diff)
CMake: default path for OpenSSL libs.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt17
1 files changed, 12 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 650ecd3303..c7e1a4b6a4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,14 +2,21 @@ cmake_minimum_required (VERSION 2.8)
project (Miranda)
-find_package(OpenSSL)
-
-set_directory_properties(PROPERTIES COMPILE_DEFINITIONS "_UNICODE;UNICODE;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS")
if(CMAKE_CL_64)
- link_directories(${CMAKE_SOURCE_DIR}/libs/win64)
+ set(PREBUILT_DIR ${CMAKE_SOURCE_DIR}/libs/win64)
else()
- link_directories(${CMAKE_SOURCE_DIR}/libs/win32)
+ set(PREBUILT_DIR ${CMAKE_SOURCE_DIR}/libs/win32)
endif()
+
+set(LIB_EAY_DEBUG ${PREBUILT_DIR}/libeay32.lib CACHE FILEPATH "libeay debug path")
+set(LIB_EAY_RELEASE ${PREBUILT_DIR}/libeay32.lib CACHE FILEPATH "libeay release path")
+set(SSL_EAY_DEBUG ${PREBUILT_DIR}/ssleay32.lib CACHE FILEPATH "ssleay debug path")
+set(SSL_EAY_RELEASE ${PREBUILT_DIR}/ssleay32.lib CACHE FILEPATH "ssleay release path")
+
+find_package(OpenSSL)
+
+set_directory_properties(PROPERTIES COMPILE_DEFINITIONS "_UNICODE;UNICODE;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS")
+link_directories(${PREBUILT_DIR})
include_directories(${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/include/msapi ${CMAKE_SOURCE_DIR}/plugins/ExternalAPI)
add_subdirectory(build)