Skip to content

Commit

Permalink
windows vcpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
fanvanzh committed May 22, 2024
1 parent 6100aeb commit aae3479
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Introduction

[![glTF status](https://img.shields.io/badge/glTF-2%2E0-green.svg?style=flat)](https://github.com/KhronosGroup/glTF)
[![Action status](https://github.com/fanvanzh/3dtiles/actions/workflows/build.yml/badge.svg)](https://github.com/fanvanzh/3dtiles/actions/workflows/build.yml)

[![Action status](https://github.com/fanvanzh/3dtiles/actions/workflows/windows.yml/badge.svg)](https://github.com/fanvanzh/3dtiles/actions/workflows/windows.yml)
[![Action status](https://github.com/fanvanzh/3dtiles/actions/workflows/linux.yml/badge.svg)](https://github.com/fanvanzh/3dtiles/actions/workflows/linux.yml)
Tools for 3D-Tiles convertion.

This is a `RUST language` project with cpp lib to handle osgb data.
Expand Down
1 change: 0 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
extern crate cc;
use std::env;
use std::process::{Command, Stdio};

fn build_win_msvc() {
cc::Build::new()
Expand Down
10 changes: 8 additions & 2 deletions src/GeoTransform.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#pragma once
#include <gdal/ogr_spatialref.h>
#include <gdal/ogrsf_frmts.h>
/* vcpkg path */
#ifdef _WIN32
#include <ogr_spatialref.h>
#include <ogrsf_frmts.h>
#else
#include <gdal/ogr_spatialref.h>
#include <gdal/ogrsf_frmts.h>
#endif

#include "glm/glm.hpp"

Expand Down
7 changes: 6 additions & 1 deletion src/shp23dtile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
#include "json.hpp"
#include "extern.h"

#include <gdal/ogrsf_frmts.h>
/* vcpkg path */
#ifdef _WIN32
#include <ogrsf_frmts.h>
#else
#include <gdal/ogrsf_frmts.h>
#endif

#include <osg/Material>
#include <osg/PagedLOD>
Expand Down
10 changes: 8 additions & 2 deletions src/tileset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@
#include <cstring>
#include <algorithm>

#include <gdal/ogrsf_frmts.h>
#include <gdal/ogr_spatialref.h>
/* vcpkg path */
#ifdef _WIN32
#include <ogr_spatialref.h>
#include <ogrsf_frmts.h>
#else
#include <gdal/ogrsf_frmts.h>
#include <gdal/ogr_spatialref.h>
#endif

#include "extern.h"
#include "GeoTransform.h"
Expand Down

0 comments on commit aae3479

Please sign in to comment.