www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - D module for CMake

reply Selman Ulug <selman.ulug gmail.com> writes:
hi,

second draft for cmake module. first draft announce sent to D.gnu. now it
works for dmd too but lots of work waiting. if anyone thinks it'll usefull
I'll continue to work on it. I copied README below.

Download: http://www.selmanulug.info/CMakeD.tar.gz

regards

README
------
D module for CMake. Only works on Linux for now. it looks first "gdc" 
then "dmd" for compiler. if one installed it'll work with it. if both 
installed and want to use "dmd" use this "export DC=/path/to/dmd".

"dmd" support limited you can build libraries but can't add to your 
executables because flags must to send linker like this "-L-lsdl". 
CMake didn't recognize this for now.

PS: samples tested with gdc 0.23 (all samples)  and DMD 1.005 (only 
wc) under Arch Linux i686.

Download: http://www.selmanulug.info/CMakeD.tar.gz

selman.ulug(AT)gmail(DOT)com

INSTALL CMakeD
--------------

1. install cmake
2. download and extract CMakeD
2. "cd cmaked"
3. "cmake ."
4. be root and "make install"

that's all


samples/Hello
-------------
Original Web: http://www.cmake.org/HTML/Examples.html

basic executable and library creating sample.

1. "cd samples/Hello"
2. "cmake ."
3. "make"
4. "Demo/helloDemo"


samples/minwin_gtk
------------------
Original Web: http://www.dsource.org/projects/minwin

a little complex. using GTK libraries and building lots of samples.

1. "cd samples/minwin_gtk"
2. "cmake ."
3. "make"

You'll find working executables in "minwin/samples". no install procedure
added only for sample.


samples/wc
----------
Original Web: http://www.digitalmars.com/d/wc.html

only buildable with dmd.

1. "cd samples/minwin_gtk"
2. "cmake ."
3. "make"

-- 
Selman Ulug
Blog: http://sulug.blogpot.com
E-mail: selman.ulug(at)gmail(dot)com
Aur : http://aur.archlinux.org/packages.php?K=selman&SeB=m
Mar 12 2007
next sibling parent reply Selman Ulug <selman.ulug gmail.com> writes:
now working under MinGW for gdc and dmd. generating makefiles for executables
working but for libraries there is a problem. you can look README in new
package for details.

Download: http://www.selmanulug.info/CMakeD.tar.gz

regards
Mar 12 2007
parent reply Justin C Calvarese <technocrat7 gmail.com> writes:
Selman Ulug wrote:
 now working under MinGW for gdc and dmd. generating makefiles for executables
working but for libraries there is a problem. you can look README in new
package for details.
 
 Download: http://www.selmanulug.info/CMakeD.tar.gz
 
 regards
Your server doesn't seem to like me: <quote> Forbidden You don't have permission to access /CMakeD.tar.gz on this server. Apache/1.3.28 Server at www.selmanulug.info Port 80 </quote> -- jcc7
Mar 12 2007
parent Selman Ulug <selman.ulug gmail.com> writes:
sorry, I fixed. damn permisions :)

Justin C Calvarese Wrote:

 Selman Ulug wrote:
 now working under MinGW for gdc and dmd. generating makefiles for executables
working but for libraries there is a problem. you can look README in new
package for details.
 
 Download: http://www.selmanulug.info/CMakeD.tar.gz
 
 regards
Your server doesn't seem to like me: <quote> Forbidden You don't have permission to access /CMakeD.tar.gz on this server. Apache/1.3.28 Server at www.selmanulug.info Port 80 </quote> -- jcc7
Mar 12 2007
prev sibling next sibling parent reply Dejan Lekic <dejan.lekic gmail.com> writes:
Mr. Ulug,
this is just great! I use CMake in few of my C/C++ projects. Now I can use it
for D projects as well! Cool! Thanks!

Kind regards

Dejan
Mar 14 2007
parent Selman Ulug <selman.ulug gmail.com> writes:
Wednesday 14 March 2007 12:35 Dejan Lekic wrote:

 Mr. Ulug,
 this is just great! I use CMake in few of my C/C++ projects. Now I can use
 it for D projects as well! Cool! Thanks!
 
 Kind regards
 
 Dejan
thanks for your kind words Dejan. It's in alpha stage for DMD on GNU/Linux and MinGW there is a problem adding and compiling libraries but executables no needs extra library is working. there is same problem for GDC on MinGW. GDC on GNU/Linux seems beta and very usable. I started to create Arch Linux packages (a lot tied up to Makefiles) for D programs and libraries. minwin_gtk may be an examle for this in samples directory. regards -- Selman Ulug Blog: http://sulug.blogpot.com E-mail: selman.ulug(at)gmail(dot)com Aur : http://aur.archlinux.org/packages.php?K=selman&SeB=m
Mar 14 2007
prev sibling parent Selman Ulug <selman.ulug gmail.com> writes:
http://www.dsource.org/projects/cmaked

dsource.org project opened, thanks Brad.

regards

-- 
Selman Ulug
Blog: http://sulug.blogpot.com
E-mail: selman.ulug(at)gmail(dot)com
Aur : http://aur.archlinux.org/packages.php?K=selman&SeB=m
Mar 15 2007