cmake_minimum_required(VERSION 2.8.12)
project(rapidrand)
macro(use_cxx11)
    if (CMAKE_VERSION VERSION_LESS "3.1")
        if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
            set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
        endif ()
    else ()
        set (CMAKE_CXX_STANDARD 11)
    endif ()
endmacro(use_cxx11)

add_subdirectory(lib/pybind11)
pybind11_add_module(rapidrand src/main.cpp src/genstr.cpp)

add_executable(test src/test.cpp src/genstr.cpp)