summaryrefslogtreecommitdiff
path: root/src/miranda32/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/miranda32/CMakeLists.txt')
-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