Commit Graph

24 Commits

Author SHA1 Message Date
1f466d4931 Move this line to make sure the flag is always applied 2013-01-04 12:02:26 +00:00
81a4294a7d Enable SWIG generation of C# bindings 2012-12-26 20:53:44 +00:00
f5ea8878c2 Add a default CompilerCapabilities.h
This file assumes that the compiler doesn't support anything. If building
without CMake, it will be used and if you want to enable things, the file
can be edited.

When using CMake, a proper CompilerCapabilites.h will be generated and
CMake will set the include path order correctly in order to source the
correct file.
2012-12-26 12:54:52 +00:00
3902e00a0f Add a CompilerCapabilities.h.in file which is filled in by CMake
It will #define a each of the basic features detected by CMake which can
then be used by other headers (like TypeDef.h) to set things up for
PolyVox.

It is this file which you will have to manually edit and rename if you want
to skip using CMake.
2012-11-23 15:41:26 +00:00
3577a56eb3 Rename some SWIG stuff to prepare for C# bindings 2012-11-21 17:03:17 +00:00
bc01223237 Removed some unecessary hierarchy in VS project structure.
Renamed the documentation targets in VS for clarity.
2012-09-28 14:07:13 +02:00
4b63c34305 Brought the manual and API docs together under the same heading in Visual Studio. 2012-09-28 13:54:27 +02:00
480c159327 Add copyright headers to all the CMake files 2012-08-24 13:20:41 +01:00
b96309f4a4 Use the CMake folder tool to help IDEs groupt targets.
This is done as seen in http://athile.net/library/blog/?p=288

Hopefully this works in Visual Studio as KDevelop doesn't use this feature.
2012-08-12 04:29:51 +01:00
8ac27912ae Fix CMake files so it actually works on CMake 2.8.3 2012-07-23 11:11:31 +01:00
830623800c Set BUILD_BINDINGS to OFF correctly
When ENABLE_BINDINGS is true but SWIG or Python isn't found, correctly
set BUILD_BINDINGS to OFF rather than leaving it blank.
2012-07-20 22:09:58 +01:00
42d2a777ac Mark some internal variables as advanced in CMake
This stops them from appearing by default in cmake-gui and ccmake.
2012-07-19 19:56:40 +01:00
f11b4e17c1 Build only one of static or shared libraries
As discussed on the forums, to simplify the CMake code and avoid having to
manually specify dependencies this removes the hack to allow both static
and shared libraries to be built at the same time.

It introduces the new variable LIBRARY_TYPE which can be either STATIC or
DYNAMIC.

See: http://www.volumesoffun.com/phpBB3/viewtopic.php?p=3203#p3203
2012-07-19 17:33:34 +01:00
5d93eef5ac Add dependencies to SWIG bindings
Due to the hack in which we enable the building of both static and
shared libraries CMake's automatic dependency sorting isn't working.
Manually specifying the dependency seems to solve the problem of
components building out of order.
2012-07-18 20:36:55 +01:00
d7fc289035 Convert CMake variables from YES/NO to ON/OFF 2012-07-15 21:14:37 +01:00
2b5024591e Move some feature_summary stuff around
Move set_package_properties and add_feature_info calls around to more
sensible ordering and positions.
2012-07-15 21:10:31 +01:00
11685a1874 Rename BUILD_TESTING to ENABLE_TESTS and WITH_BINDINGS to ENABLE_BINDINGS
This is for future consistency where ENABLE_ variables will denote optional
components of PolyVox and WITH_ variables denote optionally using features
provided by external libraries (e.g. OGRE compatibility).
2012-06-26 17:08:44 +01:00
c681fac66a Add option to disable building the bindings.
If you want to disable them, even if SWIG and Python were both found, set
WITH_BINDINGS to NO with -DWITH_BINDINGS=NO or in the CMake GUI.
2012-06-21 20:31:04 +01:00
5985aa5ec2 Re-enable SWIG compilation
For now only enable Vector, although some other
may work but will need testing.
2012-06-15 00:19:49 +02:00
7a14b9245b Fix compilation of bindings
The bindings now compile but are not complete. SWIG doesn't support
nested classes so the SimpleVolume can't be bound.
2011-05-23 22:45:50 +02:00
cb0a746b6f Update include paths for bindings to new layout. 2011-05-22 21:33:32 +02:00
26081fd4ba Got the Vector class working in Python through SWIG. 2010-12-27 11:54:49 +00:00
a4a8362dba Example builds now
Seg faults on running though
2009-03-30 13:09:23 +00:00
1fb999966f Put the bindings CMake stuff in a separate directory to keep things clean
Fully remove the if(win32) stuff from the examples
2009-03-29 23:02:03 +00:00