Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
rename libcurv/geom -> libcurv/io
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-moen committed Sep 28, 2021
1 parent 3226025 commit 01cbe59
Show file tree
Hide file tree
Showing 19 changed files with 26 additions and 26 deletions.
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ file(GLOB LibCurvSrc "libcurv/*.cc")
add_library(libcurv ${LibCurvSrc})
set_property(TARGET libcurv PROPERTY OUTPUT_NAME curv)

FILE(GLOB LibCurvGeomSrc "libcurv/geom/*.cc" "libcurv/viewer/*.cc")
add_library(libcurv_geom ${LibCurvGeomSrc})
set_property(TARGET libcurv_geom PROPERTY OUTPUT_NAME curv_geom)
target_link_libraries(libcurv_geom PUBLIC imgui)
FILE(GLOB LibCurvIoSrc "libcurv/io/*.cc" "libcurv/viewer/*.cc")
add_library(libcurv_io ${LibCurvIoSrc})
set_property(TARGET libcurv_io PROPERTY OUTPUT_NAME curv_io)
target_link_libraries(libcurv_io PUBLIC imgui)

file(GLOB Src "curv/*.c" "curv/*.cc")
add_executable(curv ${Src})
Expand All @@ -143,17 +143,17 @@ else ()
set(LibOmp "")
endif ()
set(Libs
libcurv_geom libcurv imgui glfw glad ${LibOpenGL} replxx double-conversion
libcurv_io libcurv imgui glfw glad ${LibOpenGL} replxx double-conversion
Boost::iostreams Boost::filesystem Boost::system ${LibOpenVDB} tbb
${LibHalf} pthread ${LibDl} ${LibOmp})

target_link_libraries(curv PUBLIC ${Libs})

file(GLOB TestSrc "tests/*.cc")
add_executable(tester EXCLUDE_FROM_ALL ${TestSrc})
target_link_libraries(tester PUBLIC gtest pthread libcurv libcurv_geom double-conversion Boost::iostreams Boost::filesystem Boost::system)
target_link_libraries(tester PUBLIC gtest pthread libcurv libcurv_io double-conversion Boost::iostreams Boost::filesystem Boost::system)

set_property(TARGET curv libcurv libcurv_geom tester PROPERTY CXX_STANDARD 17)
set_property(TARGET curv libcurv libcurv_io tester PROPERTY CXX_STANDARD 17)

if (APPLE)
set(ompflags "-Xpreprocessor -fopenmp")
Expand Down
6 changes: 3 additions & 3 deletions curv/curv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ extern "C" {
#include <libcurv/source.h>
#include <libcurv/system.h>

#include <libcurv/geom/builtin.h>
#include <libcurv/geom/import.h>
#include <libcurv/geom/tempfile.h>
#include <libcurv/io/builtin.h>
#include <libcurv/io/import.h>
#include <libcurv/io/tempfile.h>
#include <libcurv/viewer/viewer.h>

namespace fs = curv::Filesystem;
Expand Down
4 changes: 2 additions & 2 deletions curv/export.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#include "export.h"

#include <libcurv/geom/compiled_shape.h>
#include <libcurv/geom/png.h>
#include <libcurv/io/compiled_shape.h>
#include <libcurv/io/png.h>
#include <libcurv/viewer/viewer.h>

#include <libcurv/context.h>
Expand Down
2 changes: 1 addition & 1 deletion curv/export_mesh.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include "export.h"
#include "encode.h"
#include <libcurv/geom/compiled_shape.h>
#include <libcurv/io/compiled_shape.h>
#include <libcurv/shape.h>
#include <libcurv/exception.h>
#include <libcurv/context.h>
Expand Down
4 changes: 2 additions & 2 deletions docs/Implementation
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ There are 3 libraries in the libcurv directory:
Only depends on boost and double-conversion.
libcurv/viewer -- Graphics window for rendering shapes using GPU.
Depends on libcurv, OpenGL, Glad, GLFW.
libcurv/geom -- Import and export various file formats.
Depends on libcurv, viewer, and file-format libraries.
libcurv/io -- Import and export various file formats.
Depends on libcurv, viewer, and file-format libraries.

LibCurv
-------
Expand Down
4 changes: 2 additions & 2 deletions libcurv/geom/builtin.cc → libcurv/io/builtin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Licensed under the Apache License, version 2.0
// See accompanying file LICENSE or https://www.apache.org/licenses/LICENSE-2.0

#include <libcurv/geom/builtin.h>
#include <libcurv/io/builtin.h>

#include <libcurv/geom/cpp_program.h>
#include <libcurv/io/cpp_program.h>

#include <libcurv/analyser.h>
#include <libcurv/context.h>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the Apache Licence, version 2.0
// See https://www.apache.org/licenses/LICENSE-2.0

#include <libcurv/geom/compiled_shape.h>
#include <libcurv/io/compiled_shape.h>

#include <libcurv/context.h>
#include <libcurv/function.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#ifndef LIBCURV_GEOM_COMPILED_SHAPE_H
#define LIBCURV_GEOM_COMPILED_SHAPE_H

#include <libcurv/geom/cpp_program.h>
#include <libcurv/io/cpp_program.h>
#include <libcurv/shape.h>
#include <ostream>
#include <glm/vec3.hpp>
Expand Down
4 changes: 2 additions & 2 deletions libcurv/geom/cpp_program.cc → libcurv/io/cpp_program.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Licensed under the Apache License, version 2.0
// See accompanying file LICENSE or https://www.apache.org/licenses/LICENSE-2.0

#include <libcurv/geom/cpp_program.h>
#include <libcurv/io/cpp_program.h>

#include <libcurv/geom/tempfile.h>
#include <libcurv/io/tempfile.h>
#include <libcurv/context.h>
#include <libcurv/exception.h>

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion libcurv/geom/import.cc → libcurv/io/import.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the Apache License, version 2.0
// See accompanying file LICENSE or https://www.apache.org/licenses/LICENSE-2.0

#include <libcurv/geom/import.h>
#include <libcurv/io/import.h>
#include <libcurv/system.h>
#include <libcurv/exception.h>

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion libcurv/geom/png.cc → libcurv/io/png.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the Apache License, version 2.0
// See accompanying file LICENSE or https://www.apache.org/licenses/LICENSE-2.0

#include <libcurv/geom/png.h>
#include <libcurv/io/png.h>

#include <libcurv/shape.h>
#include <libcurv/viewer/viewer.h>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion libcurv/geom/tempfile.cc → libcurv/io/tempfile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the Apache Licence, version 2.0
// See https://www.apache.org/licenses/LICENSE-2.0

#include <libcurv/geom/tempfile.h>
#include <libcurv/io/tempfile.h>
#include <libcurv/exception.h>
#include <libcurv/context.h>
#include <algorithm>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/eval.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <libcurv/string.h>
#include <libcurv/system.h>

#include <libcurv/geom/builtin.h>
#include <libcurv/io/builtin.h>

using namespace std;
using namespace curv;
Expand Down
2 changes: 1 addition & 1 deletion tests/tests.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <gtest/gtest.h>
#include <libcurv/geom/tempfile.h>
#include <libcurv/io/tempfile.h>
extern "C" {
#include <stdlib.h>
}
Expand Down

0 comments on commit 01cbe59

Please sign in to comment.