-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
26 lines (24 loc) · 1.01 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright (c) 2016-2018 Damien Dart, <https://www.robotinaponcho.net/>.
# This file is distributed under the MIT licence. For more information,
# please refer to the accompanying "LICENCE" file.
cmake_minimum_required (VERSION 2.6)
project("FlippyWindow")
set(VERSION_MAJOR 1)
set(VERSION_MINOR 0)
set(VERSION_PATCH 0)
# Tweak run-time library options to use static versions so we don't have
# to faff around with all that "Visual C++ Redistributable" stuff.
foreach(flags
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
if(${flags} MATCHES "/MD")
string(REGEX REPLACE "/MD" "/MT" ${flags} "${${flags}}")
endif(${flags} MATCHES "/MD")
endforeach(flags)
configure_file(
"${PROJECT_SOURCE_DIR}/FlippyWindow.h.in"
"${PROJECT_SOURCE_DIR}/FlippyWindow.h")
include_directories("${PROJECT_SOURCE_DIR}")
add_executable(FlippyWindow WIN32
FlippyWindow.cpp FlippyWindow.ico FlippyWindow.rc)
target_link_libraries(FlippyWindow magnification.lib)