diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..43cdcbb --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/cmake-build-debug/ +/build/ diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..f2b4b7e --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,27 @@ +cmake_minimum_required(VERSION 3.7) +project(telive) + +find_package(LibXml2 REQUIRED) +if (LIBXML2_FOUND) + include_directories(${LIBXML2_INCLUDE_DIR}) +endif (LIBXML2_FOUND) + +find_package(Curses REQUIRED) +if (CURSES_FOUND) + include_directories(${CURSES_INCLUDE_DIR}) +endif(CURSES_FOUND) + +set(CMAKE_CXX_STANDARD 11) + +set(SOURCE_FILES + telive.c + telive.h + telive_receiver.c + telive_receiver.h + telive_util.c + telive_util.h) + +add_executable(telive ${SOURCE_FILES}) +target_link_libraries(telive + ${LIBXML2_LIBRARIES} + ${CURSES_LIBRARIES}) \ No newline at end of file