diff options
| -rw-r--r-- | CMakeLists.txt | 36 | ||||
| -rw-r--r-- | doc/uidesign.txt (renamed from uidesign.txt) | 0 | ||||
| -rw-r--r-- | src/main.c | 8 |
3 files changed, 44 insertions, 0 deletions
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/uidesign.txt b/doc/uidesign.txt index 8b0b943..8b0b943 100644 --- a/uidesign.txt +++ b/doc/uidesign.txt 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 <stdio.h> +#include <stdlib.h> + +int main(int argc, char **argv) +{ + printf("oxen\n"); + return EXIT_SUCCESS; +} |
