Skip to content

Commit

Permalink
Move files as per AngusJohnson#243 discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-239 committed Oct 1, 2022
1 parent b520a63 commit 75bddab
Show file tree
Hide file tree
Showing 22 changed files with 26 additions and 26 deletions.
18 changes: 9 additions & 9 deletions CPP/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ option(BUILD_SHARED_LIBS "Build shared libs" OFF)
include(GNUInstallDirs)

set(CLIPPER2_INC
Clipper2Lib/clipper.core.h
Clipper2Lib/clipper.engine.h
Clipper2Lib/clipper.h
Clipper2Lib/clipper.minkowski.h
Clipper2Lib/clipper.offset.h
Clipper2Lib/include/clipper2/clipper.core.h
Clipper2Lib/include/clipper2/clipper.engine.h
Clipper2Lib/include/clipper2/clipper.h
Clipper2Lib/include/clipper2/clipper.minkowski.h
Clipper2Lib/include/clipper2/clipper.offset.h
)

set(CLIPPER2_SRC
Clipper2Lib/clipper.engine.cpp
Clipper2Lib/clipper.offset.cpp
Clipper2Lib/src/clipper.engine.cpp
Clipper2Lib/src/clipper.offset.cpp
)

# 2d version of Clipper2
add_library(Clipper2 ${CLIPPER2_INC} ${CLIPPER2_SRC})

target_include_directories(Clipper2
PUBLIC Clipper2Lib
PUBLIC Clipper2Lib/include
)

# Clipper2 but with USINGZ defined
Expand All @@ -40,7 +40,7 @@ add_library(Clipper2Z ${CLIPPER2_INC} ${CLIPPER2_SRC})
target_compile_definitions(Clipper2Z PUBLIC USINGZ)

target_include_directories(Clipper2Z
PUBLIC Clipper2Lib
PUBLIC Clipper2Lib/include
)

if (WIN32)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <vector>
#include <numeric>
#include <algorithm>
#include "clipper.engine.h"
#include "clipper2/clipper.engine.h"

namespace Clipper2Lib {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
*******************************************************************************/

#include <cmath>
#include "clipper.h"
#include "clipper.offset.h"
#include "clipper2/clipper.h"
#include "clipper2/clipper.offset.h"

namespace Clipper2Lib {

Expand Down
2 changes: 1 addition & 1 deletion CPP/Tests/TestLines.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <gtest/gtest.h>
#include "clipper.h"
#include "clipper2/clipper.h"
#include "ClipFileLoad.h"

TEST(Clipper2Tests, TestMultipleLines) {
Expand Down
2 changes: 1 addition & 1 deletion CPP/Tests/TestOffsetOrientation.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <gtest/gtest.h>
#include "clipper.offset.h"
#include "clipper2/clipper.offset.h"

TEST(Clipper2Tests, TestOffsettingOrientation) {
Clipper2Lib::ClipperOffset co;
Expand Down
2 changes: 1 addition & 1 deletion CPP/Tests/TestOrientation.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <gtest/gtest.h>
#include "clipper.h"
#include "clipper2/clipper.h"

using namespace Clipper2Lib;

Expand Down
2 changes: 1 addition & 1 deletion CPP/Tests/TestPolygons.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <gtest/gtest.h>
#include "clipper.h"
#include "clipper2/clipper.h"
#include "ClipFileLoad.h"

inline Clipper2Lib::PathD MakeRandomPath(int width, int height, unsigned vertCnt)
Expand Down
2 changes: 1 addition & 1 deletion CPP/Tests/TestPolytreeHoles1.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <gtest/gtest.h>
#include "clipper.h"
#include "clipper2/clipper.h"
#include "ClipFileLoad.h"

using namespace Clipper2Lib;
Expand Down
2 changes: 1 addition & 1 deletion CPP/Tests/TestPolytreeHoles2.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <gtest/gtest.h>
#include "clipper.h"
#include "clipper2/clipper.h"
#include "ClipFileLoad.h"

using namespace Clipper2Lib;
Expand Down
2 changes: 1 addition & 1 deletion CPP/Tests/TestPolytreeIntersection.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <gtest/gtest.h>
#include "clipper.h"
#include "clipper2/clipper.h"

using namespace Clipper2Lib;

Expand Down
2 changes: 1 addition & 1 deletion CPP/Tests/TestPolytreeUnion.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <gtest/gtest.h>
#include "clipper.h"
#include "clipper2/clipper.h"

using namespace Clipper2Lib;

Expand Down
2 changes: 1 addition & 1 deletion CPP/Tests/TestRandomPaths.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <gtest/gtest.h>
#include "clipper.h"
#include "clipper2/clipper.h"
#include <fstream>
#include <random>

Expand Down
2 changes: 1 addition & 1 deletion CPP/Tests/TestTrimCollinear.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <gtest/gtest.h>
#include "clipper.h"
#include "clipper2/clipper.h"

using namespace Clipper2Lib;

Expand Down
2 changes: 1 addition & 1 deletion CPP/Utils/ClipFileLoad.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include <fstream>
#include <string>
#include "clipper.h"
#include "clipper2/clipper.h"
#ifndef _WIN32
#include <sys/types.h>
#include <sys/stat.h>
Expand Down
2 changes: 1 addition & 1 deletion CPP/Utils/ClipFileSave.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#ifndef CLIPPER_TEST_SAVE_H
#define CLIPPER_TEST_SAVE_H

#include "clipper.h"
#include "clipper2/clipper.h"

bool SaveTest(const std::string& filename, bool append,
Clipper2Lib::Paths64* subj, Clipper2Lib::Paths64* subj_open, Clipper2Lib::Paths64* clip,
Expand Down
2 changes: 1 addition & 1 deletion CPP/Utils/clipper.svg.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include <cstdlib>
#include <string>
#include "clipper.h"
#include "clipper2/clipper.h"

namespace Clipper2Lib {

Expand Down
2 changes: 1 addition & 1 deletion CPP/Utils/clipper.svg.utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include <cstdlib>
#include <string>
#include "clipper.h"
#include "clipper2/clipper.h"
#include "clipper.svg.h"
#ifndef _WIN32
#include <sys/types.h>
Expand Down

0 comments on commit 75bddab

Please sign in to comment.