--- /dev/null
+project(umurmurd)
+
+cmake_minimum_required(VERSION 2.8)
+
+add_definitions()
+
+include(FindPkgConfig)
+include(CheckFunctionExists)
+include(CheckLibraryExists)
+
+pkg_check_modules(BASELIBS libconfig)
+check_function_exists(clock_gettime GAVE_CLOCK_GETTIME)
+check_library_exists(rt clock_gettime "time.h" HAVE_CLOCK_GETTIME_RT)
+
+set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g")
+set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
+
+set(SOURCE "")
+
+add_subdirectory(src)
+include_directories(include)
+
+add_executable(umurmurd ${SOURCE})
+target_link_libraries(umurmurd pthread)
--- /dev/null
+set(SOURCE
+ ${SOURCE}
+ ${CMAKE_CURRENT_SOURCE_DIR}/Mumble.pb-c.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/ban.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/channel.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/client.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/conf.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/crypt.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/log.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/main.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/messagehandler.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/messages.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/pds.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/server.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/ssl.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/timer.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/voicetarget.c
+
+ PARENT_SCOPE
+)