codegen/CMakeLists.txt

Tue, 21 Oct 2014 20:35:37 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Tue, 21 Oct 2014 20:35:37 +0300
changeset 897
ef9e4469975a
parent 855
e16f1587ef44
permissions
-rw-r--r--

- pressing ctrl while drawing now locks the draw to cardinal directions

845
fec7023e91a7 - added a code generator to produce a configuration.inc which replaces the old, DIABOLIC configuration indexing mechanism
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
1 cmake_minimum_required (VERSION 2.4)
fec7023e91a7 - added a code generator to produce a configuration.inc which replaces the old, DIABOLIC configuration indexing mechanism
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
2 add_executable (codegen codegen.cpp)
855
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
3
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
4 #
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
5 # LDForge uses alternative operators. GCC and Clang use these by default but MSVC does not.
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
6 # So we'll have to tell MSVC to use these alternative operators
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
7 #
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
8 if (MSVC)
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
9 set_target_properties (codegen PROPERTIES COMPILE_FLAGS "/Za")
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
10 endif()

mercurial