summaryrefslogtreecommitdiff
path: root/src/miranda32
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 /src/miranda32
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 'src/miranda32')
-rw-r--r--src/miranda32/CMakeLists.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/miranda32/CMakeLists.txt b/src/miranda32/CMakeLists.txt
index 1ca94b3a1d..2375cb76d6 100644
--- a/src/miranda32/CMakeLists.txt
+++ b/src/miranda32/CMakeLists.txt
@@ -1,7 +1,12 @@
file(GLOB SOURCES "src/*.h" "src/*.cpp" "res/*.rc")
-add_executable(miranda32 ${SOURCES})
+if(CMAKE_CL_64)
+ set(TARGET "Miranda64")
+else()
+ set(TARGET "Miranda32")
+endif()
+add_executable(${TARGET} ${SOURCES})
include_directories(.)
-set_target_properties(miranda32 PROPERTIES
+set_target_properties(${TARGET} PROPERTIES
LINK_FLAGS "/SUBSYSTEM:WINDOWS"
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/$<CONFIG>"
) \ No newline at end of file