Laurent Gomila
eaa5ae9c55
disabled the combination of BUILD_SHARED_LIBS and SFML_USE_STATIC_STD_LIBS in the build files
2012-09-16 20:12:42 +02:00
Laurent Gomila
459bc291f5
Added the SFML_ prefix on all the CMake variables specific to SFML
2012-04-18 19:07:47 +02:00
Laurent Gomila
511032460a
The readme.txt file is now installed by the 'install' target
2012-04-08 11:22:36 +02:00
Marco Antognini
ac64a7c995
cmake now install Xcode templates for all users on the system.
2012-01-24 17:28:22 +01:00
John Bartholomew
2ac7653608
Add pkg-config files, optionally installed by CMake on Linux builds.
...
The modules provided are:
- sfml-system
- sfml-graphics
- sfml-window
- sfml-audio
- sfml-network
- sfml-all (depends on all the above modules)
They are installed to ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/pkgconfig/
which is the standard location for pkg-config files on Linux.
An example use if using autotools:
# configure.ac
AC_INIT([sfml-example],[1.0],[example@example.com ])
AM_INIT_AUTOMAKE([foreign])
AC_PROG_CXX
PKG_CHECK_MODULES([sfml],
[sfml-all >= 2.0.0],
[], [AC_MSG_ERROR([SFML is required])])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
# Makefile.am
bin_PROGRAMS = sfml_example
sfml_example_SOURCES = src/sfml_example.cpp
sfml_example_CFLAGS = $(sfml_CFLAGS)
sfml_example_LIBS = $(sfml_LIBS)
An example if using hand-written Makefiles:
# Makefile
sfml-example: src/sfml-example.cpp
g++ `pkg-config --cflags --libs sfml-all` -o $@ $^
2012-01-10 21:08:20 +00:00
Marco Antognini
2720532d63
move xcode/ into tools/
2012-01-07 15:34:11 +01:00
Laurent Gomila
7a8b32c897
Merge branch 'master' of github.com:LaurentGomila/SFML
2012-01-03 18:03:03 +01:00
Laurent Gomila
91705fe25c
The architecture (32/64 bits) is now detected only on Windows
2012-01-03 18:02:18 +01:00
Marco Antognini
de1a4fbeae
minor fix in cmake script
2012-01-03 12:35:49 +01:00
Laurent Gomila
88683504ba
*Really* solved the last commit problem :)
2012-01-02 07:47:13 +01:00
Laurent Gomila
ab0f84ad3f
Solved problem with last commit
2012-01-02 07:45:33 +01:00
Laurent Gomila
9d0a0fe3f2
Improved the definition of options in CMake files, they can now be overriden by a parent CMakeLists.txt
2012-01-01 22:50:44 +01:00
Laurent Gomila
4107505a05
Made CMake files compatible with VC++ 2011, and other minor improvements
2011-12-28 21:39:23 +01:00
Laurent Gomila
d943f22c93
FindSFML.cmake is now installed to the same directory as other SFML files, not to <cmake install>/Modules anymore (admin rights problems)
2011-12-14 19:54:44 +01:00
Marco Antognini
d6c1fda5bd
fixed creation of SFML.framework
2011-09-09 15:24:09 +02:00
Marco Antognini
95a0126371
Improved cmake : autodetect available OS X SDK
2011-09-05 18:54:03 +02:00
Marco Antognini
b834787946
Removed dummy.cpp
2011-09-05 18:53:20 +02:00
Marco Antognini
7d919f4344
Fixed frameworks compilation
2011-08-21 20:15:55 +02:00
Marco Antognini
e09db44906
Cmake now is able to build SFML libraries as frameworks ( closes #12 )
...
Cmake can now automatically install the Xcode templates
2011-08-20 12:22:39 +02:00
Martin Foot
13986b2a3b
Fix CMake variables to allow adding SFML as a dependency.
2011-08-07 14:33:42 +01:00
Marco Antognini
de70f691e1
Improved cmake for OS X 10.5
2011-07-03 18:45:51 +02:00
Marco Antognini
95a81c6075
Fixed universal build on OS X.
2011-06-20 10:21:27 +02:00
Laurent Gomila
67c498dde3
Changed the STATIC_STD_LIBS CMake option to FALSE by default (matches the default compilers' settings)
2011-05-28 14:28:22 +02:00
Laurent Gomila
effc31327b
Changed the FORCE_STATIC_VCRT to STATIC_STD_LIBS, made it available for MinGW/gcc and set it to TRUE by default
2011-05-16 00:00:00 +02:00
Marco Antognini
d53750fa35
CMake : deactivate ppc support.
2011-03-31 19:09:10 +02:00
Marco Antognini
0e37997734
CMake : add support for ppc arch and 10.5 SDK
2011-03-31 19:09:10 +02:00
Laurent Gomila
dc80731bae
Fixed install rules according to the new x86/x64 directories in extlibs
2011-03-28 18:20:27 +02:00
Laurent Gomila
293cacfbda
Added a CMake option to compile SFML with static VC++ runtime
2011-03-26 23:24:09 +01:00
mantognini
de8712fa5f
This is a big commit for os x port!
...
> remove old OSX version
> add new sources (Window and Graphics modules)
> add extlibs static binaries/headers/frameworks
> update cmake for OSX
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1711 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-25 16:45:03 +00:00
LaurentGom
511be1028d
Fixed install path for FindSFML.cmake
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1623 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-07 18:53:18 +00:00
LaurentGom
6a6ff075e8
Removed the SFML_DYNAMIC symbol for dynamic builds, added SFML_STATIC for static builds
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1614 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-05 13:58:29 +00:00
LaurentGom
076456aa91
Added a FindSFML.cmake file for CMake
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1571 4e206d99-4929-0410-ac5d-dfc041789085
2010-10-04 21:16:12 +00:00
LaurentGom
a991fe8e4d
Added support for the CMake build system
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1550 4e206d99-4929-0410-ac5d-dfc041789085
2010-08-19 15:59:24 +00:00