diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 11 |
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) |
