summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVitaly Svyastyn <protomors@gmail.com>2017-11-05 19:33:01 +0600
committerGeorge Hazan <ghazan@miranda.im>2017-11-05 16:33:01 +0300
commit52921a9e13484319df2d4f1153521f3f5e12b932 (patch)
tree5c6b99a6e59958778ab1cdfa61a0848d3211eb0a /CMakeLists.txt
parentdb6f3932affcc9397c9fbed99d344388a585add5 (diff)
More CMake (#1016)
* Generate version information before build. * Removed /EHsc from compile options. * CMake files for the rest of protocols. * CMake 64 bit build. * CMake: precompiled headers.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fd22000a6e..5328c8ddf4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,7 +3,11 @@ cmake_minimum_required (VERSION 2.8)
project (Miranda)
set_directory_properties(PROPERTIES COMPILE_DEFINITIONS "_UNICODE;UNICODE;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS")
-link_directories(${CMAKE_SOURCE_DIR}/libs/win32)
+if(CMAKE_CL_64)
+ link_directories(${CMAKE_SOURCE_DIR}/libs/win64)
+else()
+ link_directories(${CMAKE_SOURCE_DIR}/libs/win32)
+endif()
include_directories(${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/include/msapi ${CMAKE_SOURCE_DIR}/plugins/ExternalAPI)
set(COMMON_LIBS winmm.lib Wtsapi32.lib netapi32.lib pdh.lib shlwapi.lib Strmiids.lib gdiplus.lib dbghelp.lib Setupapi.lib msimg32.lib comctl32.lib ws2_32.lib UxTheme.lib)