aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrayhogenson <rayhogenson@gmail.com>2014-03-15 01:37:42 -0800
committerrayhogenson <rayhogenson@gmail.com>2014-03-15 01:37:42 -0800
commit000a4668b6fe6fc822d1265152656fb675a26a73 (patch)
tree2af78817324301e009247bb6c27edfa14eacdd8b
parent62cc737c29bff2f962d63ba571349090e3f1b26c (diff)
downloadyetihack-000a4668b6fe6fc822d1265152656fb675a26a73.tar.zst
yo
-rw-r--r--CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..43e5163
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,11 @@
+cmake_minimum_required (VERSION 2.6)
+project (yetihack)
+add_executable (yetihack ${PROJECT_SOURCE_DIR}/src/yetihack.cpp ${PROJECT_SOURCE_DIR}/src/yeti.cpp)
+find_package(Curses)
+target_link_libraries(yetihack ${CURSES_LIBRARIES})
+include (CheckIncludeFile)
+check_include_file(unistd.h HAVE_UNISTD_H)
+check_include_file(windows.h HAVE_WINDOWS_H)
+configure_file("${PROJECT_SOURCE_DIR}/include/config.h.in" "${PROJECT_SOURCE_DIR}/include/config.h")
+include_directories("include")
+install (TARGETS yetihack DESTINATION bin)