|
From: <sch...@us...> - 2008-11-22 13:18:09
|
Revision: 52
http://deraciel.svn.sourceforge.net/deraciel/?rev=52&view=rev
Author: schnippi001
Date: 2008-11-22 13:18:00 +0000 (Sat, 22 Nov 2008)
Log Message:
-----------
CMake based build system written by xororand. Thank you!
Modified Paths:
--------------
trunk/INSTALL
trunk/main.c
Added Paths:
-----------
trunk/CMakeLists.txt
trunk/_cmake-distclean.bash
Added: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt (rev 0)
+++ trunk/CMakeLists.txt 2008-11-22 13:18:00 UTC (rev 52)
@@ -0,0 +1,27 @@
+cmake_minimum_required(VERSION 2.6)
+
+project(deraciel)
+SET(CMAKE_C_FLAGS "-Wall -Werror -std=c99")
+
+# requirements
+find_library( NCURSES_LIBRARY ncurses )
+if( NCURSES_LIBRARY )
+ message( STATUS "ncurses library found: ${NCURSES_LIBRARY}" )
+else( NCURSES_LIBRARY )
+ message( FATAL_ERROR "ncurses library not found". )
+endif( NCURSES_LIBRARY )
+
+include_directories(
+ ${NCURSES_INCLUDE_DIRS}
+)
+link_directories(
+ ${NCURSES_LIBRARY_DIRS}
+)
+
+# build
+file(GLOB DERACIEL_SOURCES *.c)
+add_executable(deraciel ${DERACIEL_SOURCES})
+target_link_libraries(deraciel
+ ${NCURSES_LIBRARY}
+ pthread
+)
Property changes on: trunk/CMakeLists.txt
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: svn:eol-style
+ native
Modified: trunk/INSTALL
===================================================================
--- trunk/INSTALL 2008-11-22 12:55:59 UTC (rev 51)
+++ trunk/INSTALL 2008-11-22 13:18:00 UTC (rev 52)
@@ -1,10 +1,15 @@
Compile
=======
-clear && gcc -g -std=c99 -Wall -o main *.c -lncurses -lpthread
+cmake .
+make
-
Run
===
-./main
+./deraciel
+
+
+Clean up
+========
+./_cmake-distclean.bash
Added: trunk/_cmake-distclean.bash
===================================================================
--- trunk/_cmake-distclean.bash (rev 0)
+++ trunk/_cmake-distclean.bash 2008-11-22 13:18:00 UTC (rev 52)
@@ -0,0 +1,27 @@
+#!/bin/bash
+find . -name "*.cmake" |while read f; do
+ echo "rm ${f}"
+ rm "${f}"
+done
+
+find . -name "CMakeCache.txt" |while read f; do
+ echo "rm ${f}"
+ rm "${f}"
+done
+
+find . -name "Makefile" |while read f; do
+ echo "rm ${f}"
+ rm "${f}"
+done
+
+find . -type d -name CMakeFiles |while read d; do
+ echo "rm -r ${d}"
+ rm -r "${d}"
+done
+
+find . -type d -name CMakeTmp |while read d; do
+ echo "rm -r ${d}"
+ rm -r "${d}"
+done
+
+
Property changes on: trunk/_cmake-distclean.bash
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ text/plain
Added: svn:eol-style
+ native
Modified: trunk/main.c
===================================================================
--- trunk/main.c 2008-11-22 12:55:59 UTC (rev 51)
+++ trunk/main.c 2008-11-22 13:18:00 UTC (rev 52)
@@ -2,6 +2,7 @@
#include <stdio.h>
#include <signal.h>
#include <time.h>
+#include <unistd.h>
#include <ncurses.h>
#include "text_window.h"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|