3 cmake_minimum_required(VERSION 2.8)
8 include(CheckFunctionExists)
9 include(CheckLibraryExists)
11 pkg_check_modules(BASELIBS libconfig)
12 check_function_exists(clock_gettime GAVE_CLOCK_GETTIME)
13 check_library_exists(rt clock_gettime "time.h" HAVE_CLOCK_GETTIME_RT)
15 set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g")
16 set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
21 include_directories(include)
23 add_executable(umurmurd ${SOURCE})
24 target_link_libraries(umurmurd pthread)