Changeset 1533df4e58a8be63905b8a6a4a547159d425eaf9

Show
Ignore:
Timestamp:
03/04/10 07:35:19 (2 years ago)
Author:
Philip Herron <redbrain@…>
Parents:
06f222065c8e7b41cd32db86bff506aacf79b4e1
Children:
6d093290b99088ea858fbc2863475fbf8fb4221d
git-committer:
Philip Herron <redbrain@Philip-Herrons-MacBook.local> / 2010-03-04T07:35:19Z+0000
Message:

more cmake documentation in readme.cmake

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • README.cmake

    rbcde66a r1533df4  
    88 
    99Its merit is that it can help port software to windows, since to have 
    10 a nice native build on windows its prefered to use MSVC, and not reverting 
    11 to CYGWIN. This may also be useful to Mac OSX users wanting to use Xcode, 
    12 which i want to support so we can access mac osx frameworks easier. But 
    13 in the end Cmakes is _only_ useful for Windows and MacOSX, but really i 
    14 support *BSD, *linux, *solaris are my main interests in operating systems! 
     10a nice native build on windows its prefered to use MSVC(cl.exe+link.exe), 
     11and not reverting to CYGWIN. This may also be useful to Mac OSX users  
     12wanting to use Xcode, which i want to support so we can access mac osx  
     13frameworks easier. But in the end Cmakes is _only_ useful for Windows  
     14and MacOSX, but really i support *BSD, *linux, *solaris are my main  
     15interests in operating systems! 
    1516 
    1617Like it or not Autoconf+Automake are the STANDARD, and they work beautifly 
    17 it wasn't untill i saw Drizzle (http://drizzle.org) i really understood 
     18it wasn't until i saw Drizzle (http://drizzle.org) i really understood 
    1819what a build system should do for developers and with Monty Taylors work 
    1920on Pandora i hope this is open up Autotools for more people. Cmake just 
     
    3738To build crules with cmake: 
    3839 
    39 * Linux: 
     40** Linux/Unix: 
     41--------------- 
    4042# get the sources git clone... or wget a release etc.. 
    4143$ cd crules 
     
    4345$ make 
    4446 
    45 More info to come soon! 
     47** Mac OSX + XCode 
     48------------------- 
     49# install cmake use the shell cd to the toplevel source dir 
     50# of crules 
     51$ cmake -G Xcode . 
     52# open Xcode and file->open-project there should be an xcode 
     53# project file that xcode can open! Now you can work away in 
     54# xcode if you prefer 
     55 
     56** Windows (7) + MSVC 9.0/nmake 
     57-------------------------------- 
     58# install cmake + MSVC express edition 
     59# install gnuwin32 flex + bison 
     60* http://gnuwin32.sourceforge.net/packages/bison.htm 
     61* http://gnuwin32.sourceforge.net/packages/flex.htm 
     62# add the C:\Program Files\gnuwin32\bin to your system PATH 
     63# test this by opening a command prompt 
     64$ bison.exe ... 
     65$ flex.exe 
     66# if they work your half way 
     67$ cd to the C:\Program Files\Microsoft Visual Studio 9.0\VC 
     68# vssetenv.bat to set the envoirment variables for using cl.exe 
     69# in the shell. Test by exec cl.exe 
     70$ cd to the crules sources 
     71--------- 
     72* For nmake simply: 
     73$ cmake . 
     74$ nmake 
     75* for Visual Studio 
     76$ cmake -G <generator-string> . # see cmake --help for the correct generator string 
     77$ open the workspace file 
     78 
     79 
     80NOTE (Windows only): 
     81-------------------- 
     82I need more time to fix up the windows builds using m4.exe on windows doesn't seem to like the 
     83windows style paths and flex and generating the lexer and parser seems to fail. I have only tested 
     84this on Windows 7 so far also but there shouldn't be a problem on other win32. If your using cygwin 
     85it would be prefered to using GCC/mingw and autoconf see README follow those build instructions.