From 288a24d51b9d17e03169acfa9e936a995e91c6fa Mon Sep 17 00:00:00 2001 From: Mario Kilies Date: Tue, 4 Jan 2011 00:42:41 +0100 Subject: Added cmake build system and directory structure --- CMakeLists.txt | 36 ++++++++++++++++++++++++++++++++++++ doc/uidesign.txt | 28 ++++++++++++++++++++++++++++ src/main.c | 8 ++++++++ uidesign.txt | 28 ---------------------------- 4 files changed, 72 insertions(+), 28 deletions(-) create mode 100644 CMakeLists.txt create mode 100644 doc/uidesign.txt create mode 100644 src/main.c delete mode 100644 uidesign.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..78438c6 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,36 @@ +# This project needs CMake version >= 2.6 +cmake_minimum_required(VERSION 2.6) + +# Set the project name. This will be used by CMake to name project related variables. +project(OXEN) + +# Set C compiler flags +set(CMAKE_C_FLAGS "-Wall -pedantic -g -std=c99") + +# Find dependencies +# Find ncurses +set(CURSES_NEED_NCURSES true) +find_package(Curses) + +# Set the directory where source files are located. +set(OXEN_SOURCE_DIR ${CMAKE_SOURCE_DIR}/src) + +# Set the directories where header files reside +include_directories( + include +) + +# Include all source files recursively +file(GLOB_RECURSE OXEN_SOURCES ${OXEN_SOURCE_DIR}/*.c) + +# Specify the name of our project executable and from which source files it will be built +add_executable( + oxen + ${OXEN_SOURCES} +) + +# Specify the libraries to be linked with our executable +target_link_libraries( + oxen + ${CURSES_LIBRARIES} +) diff --git a/doc/uidesign.txt b/doc/uidesign.txt new file mode 100644 index 0000000..8b0b943 --- /dev/null +++ b/doc/uidesign.txt @@ -0,0 +1,28 @@ + Table Cards: Stack Pts: | Current standing: + +-+-+-+-+-----+ | foo: 8 Points + | | | | | 101 | | $you: 10 Points + | | | | | * | 7 | bar: 23 Points + | | | | | | | + +-+-+-+-+-----+ | + +-+-+-----+ | + | | | 53 | | Hints for player + | | | * | 9 | + | | | | | + +-+-+-----+ | Your Cards: + +-+-----+ | +-----+ +-----+ +-----+ +-----+ +-----+ + | | 55 | | | 12 | | 13 | | 22 | | 25 | | 27 | + | |** **| 8 | | * | | * | |* * *| | * * | | * | + | | *** | | | | | | | * * | | | | | + +-+-----+ | +-----+ +-----+ +-----+ +-----+ +-----+ + +-+-+-+-----+ | +-----+ +-----+ +-----+ +-----+ +-----+ + | | | | 42 | | | 69 | | 77 | | 85 | | 100 | | 103 | + | | | | * | 10 | | * | |* * *| | * * | | * * | | * | + | | | | | | | | | * * | | | | * | | | + +-+-+-+-----+ | +-----+ +-----+ +-----+ +-----+ +-----+ + + +== Description == +Current standing: List of players, sorted by points +Your Cards: The player's hand cards sorted in ascending order +Table Cards: Four card stacks growing from right to left, showing the uppermost/highest card +Stack Points: For each table card stack it shows the sum of points of all cards on the stack diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..d7b2613 --- /dev/null +++ b/src/main.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char **argv) +{ + printf("oxen\n"); + return EXIT_SUCCESS; +} diff --git a/uidesign.txt b/uidesign.txt deleted file mode 100644 index 8b0b943..0000000 --- a/uidesign.txt +++ /dev/null @@ -1,28 +0,0 @@ - Table Cards: Stack Pts: | Current standing: - +-+-+-+-+-----+ | foo: 8 Points - | | | | | 101 | | $you: 10 Points - | | | | | * | 7 | bar: 23 Points - | | | | | | | - +-+-+-+-+-----+ | - +-+-+-----+ | - | | | 53 | | Hints for player - | | | * | 9 | - | | | | | - +-+-+-----+ | Your Cards: - +-+-----+ | +-----+ +-----+ +-----+ +-----+ +-----+ - | | 55 | | | 12 | | 13 | | 22 | | 25 | | 27 | - | |** **| 8 | | * | | * | |* * *| | * * | | * | - | | *** | | | | | | | * * | | | | | - +-+-----+ | +-----+ +-----+ +-----+ +-----+ +-----+ - +-+-+-+-----+ | +-----+ +-----+ +-----+ +-----+ +-----+ - | | | | 42 | | | 69 | | 77 | | 85 | | 100 | | 103 | - | | | | * | 10 | | * | |* * *| | * * | | * * | | * | - | | | | | | | | | * * | | | | * | | | - +-+-+-+-----+ | +-----+ +-----+ +-----+ +-----+ +-----+ - - -== Description == -Current standing: List of players, sorted by points -Your Cards: The player's hand cards sorted in ascending order -Table Cards: Four card stacks growing from right to left, showing the uppermost/highest card -Stack Points: For each table card stack it shows the sum of points of all cards on the stack -- cgit v1.2.3