Skip to content
Snippets Groups Projects
CMakeLists.txt 568 B
Newer Older
  • Learn to ignore specific revisions
  • David Bergström's avatar
    David Bergström committed
    cmake_minimum_required (VERSION 2.8.12)
    project (starcraft-python-api)
    
    
    # Build with C++14 support, required by sc2api
    set(CMAKE_CXX_STARDARD 14)
    
    # Allow creating filters for projects in visual studio
    set_property(GLOBAL PROPERTY USE_FOLDERS ON)
    
    # Disable building for examples in the sc2api submodule
    set(BUILD_API_EXAMPLES OFF CACHE INTERNAL "" FORCE)
    
    # Disable building for tests in the sc2api submodule
    set(BUILD_API_TESTS OFF CACHE INTERNAL "" FORCE)
    
    
    David Bergström's avatar
    David Bergström committed
    add_subdirectory(lib/pybind11)
    
    add_subdirectory(lib/s2client-api)
    
    David Bergström's avatar
    David Bergström committed
    
    pybind11_add_module(library library.cxx)