Skip to content

Commit f0f1c2f

Browse files
committed
[geogram] update to 1.3.11
1 parent d8d4be9 commit f0f1c2f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+28973
-2024
lines changed

CMakeLists.txt

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ include(cmake/geogram.cmake)
3030

3131
set(VORPALINE_VERSION_MAJOR 1)
3232
set(VORPALINE_VERSION_MINOR 3)
33-
set(VORPALINE_VERSION_PATCH 10)
33+
set(VORPALINE_VERSION_PATCH 11)
3434
set(VORPALINE_VERSION ${VORPALINE_VERSION_MAJOR}.${VORPALINE_VERSION_MINOR}.${VORPALINE_VERSION_PATCH})
3535

3636
set(VORPALINE_INCLUDE_SUBPATH geogram${VORPALINE_VERSION_MAJOR})
@@ -93,39 +93,32 @@ add_custom_target(uninstall
9393
# Geogram/Vorpaline sources
9494

9595
add_subdirectory(src/lib/geogram)
96-
add_subdirectory(src/bin/vorpastat)
97-
add_subdirectory(src/bin/vorpacomp)
98-
add_subdirectory(src/bin/geodump)
99-
100-
if(GEOGRAM_WITH_FPG)
101-
add_subdirectory(src/bin/fpg)
102-
endif()
103-
10496
if(GEOGRAM_WITH_VORPALINE)
10597
add_subdirectory(src/lib/vorpalib)
106-
add_subdirectory(src/bin/vorpaline)
107-
else()
108-
add_subdirectory(src/bin/vorpalite)
10998
endif()
11099

111100
add_subdirectory(src/lib/third_party)
112101

113102
if(GEOGRAM_WITH_GRAPHICS)
114-
add_subdirectory(src/lib/geogram_gfx)
115-
add_subdirectory(src/bin/vorpaview)
116-
add_subdirectory(src/bin/geobox)
103+
add_subdirectory(src/lib/geogram_gfx)
117104
endif()
118105

119-
add_subdirectory(src/test)
106+
if(IS_DIRECTORY ${CMAKE_SOURCE_DIR}/src/lib/exploragram)
107+
set(GEOGRAM_WITH_EXPLORAGRAM TRUE)
108+
add_subdirectory(src/lib/exploragram)
109+
endif()
120110

121-
if(GEOGRAM_WITH_GRAPHICS)
122-
add_subdirectory(src/demos)
111+
if(NOT GEOGRAM_LIB_ONLY)
112+
add_subdirectory(src/bin)
113+
add_subdirectory(src/test)
114+
if(GEOGRAM_WITH_GRAPHICS)
115+
add_subdirectory(src/demos)
116+
endif()
123117
endif()
124118

125119
add_subdirectory(doc)
126120
add_subdirectory(tests)
127121

128-
129122
##############################################################################
130123
# Cleanup from previous builds
131124

CMakeOptions.txt.graphite

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@ elseif(UNIX)
99
set(VORPALINE_PLATFORM Linux64-gcc-dynamic)
1010
endif()
1111

12+
# Only geogram, geogram_gfx and GLFW will be built
13+
# (skips generation of geogram demos and programs)
14+
15+
set(GEOGRAM_LIB_ONLY TRUE)
1216

cmake/doxygen.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set(DOXYGEN_MINIMUM_VERSION 1.7.0)
99

1010
find_package(Doxygen ${DOXYGEN_MINIMUM_VERSION} QUIET)
1111
if(NOT DOXYGEN_FOUND)
12-
message(WARNING "Doxygen >= ${DOXYGEN_MINIMUM_VERSION} not found, cannot generate documentation")
12+
message(STATUS "Doxygen >= ${DOXYGEN_MINIMUM_VERSION} not found, cannot generate documentation")
1313
unset(DOXYGEN_EXECUTABLE CACHE)
1414
return()
1515
endif()

src/bin/CMakeLists.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
add_subdirectory(vorpastat)
3+
add_subdirectory(vorpacomp)
4+
add_subdirectory(geodump)
5+
6+
if(GEOGRAM_WITH_GRAPHICS)
7+
add_subdirectory(vorpaview)
8+
add_subdirectory(geobox)
9+
endif()
10+
11+
if(GEOGRAM_WITH_VORPALINE)
12+
add_subdirectory(vorpaline)
13+
else()
14+
add_subdirectory(vorpalite)
15+
endif()
16+
17+
if(GEOGRAM_WITH_FPG)
18+
add_subdirectory(fpg)
19+
endif()

src/lib/exploragram/CMakeLists.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
aux_source_directories(SOURCES "Source Files" .)
3+
aux_source_directories(SOURCES "Source Files\\hexdom" hexdom)
4+
aux_source_directories(SOURCES "Source Files\\optimal_transport" optimal_transport)
5+
6+
include_directories(${PROJECT_BINARY_DIR}/src/lib)
7+
8+
add_library(exploragram ${SOURCES})
9+
10+
set_target_properties(exploragram PROPERTIES
11+
VERSION ${VORPALINE_VERSION}
12+
SOVERSION ${VORPALINE_VERSION_MAJOR})
13+
14+
if(UNIX AND VORPALINE_BUILD_DYNAMIC)
15+
target_link_libraries(exploragram pthread dl)
16+
endif()
17+
18+
if(WIN32)
19+
target_link_libraries(exploragram psapi)
20+
endif()
21+
22+
target_link_libraries(exploragram geogram)

src/lib/exploragram/api/defs.h

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
#ifndef EXPLORAGRAM_API_DEFS
3+
#define EXPLORAGRAM_API_DEFS
4+
5+
#include <geogram/api/defs.h>
6+
7+
/**
8+
* \file exploragram/api/defs.h
9+
* \brief Basic definitions for the exploragram API
10+
*/
11+
12+
/**
13+
* \brief Linkage declaration for exploragram symbols.
14+
*/
15+
#ifdef exploragram_EXPORTS
16+
#define EXPLORAGRAM_API GEO_EXPORT
17+
#else
18+
#define EXPLORAGRAM_API GEO_IMPORT
19+
#endif
20+
21+
/**
22+
* \brief A place-holder linkage declaration to indicate
23+
* that the symbol should not be exported by Windows DLLs.
24+
* \details For instance, classes that inherit templates from
25+
* the STL should not be exported, else it generates multiply
26+
* defined symbols.
27+
*/
28+
#define NO_EXPLORAGRAM_API
29+
30+
31+
#endif
32+

src/lib/exploragram/basic/common.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
#ifndef EXPLORAGRAM_BASIC_COMMON
3+
#define EXPLORAGRAM_BASIC_COMMON
4+
5+
#include <exploragram/api/defs.h>
6+
#include <geogram/basic/common.h>
7+
#include <geogram/basic/logger.h>
8+
9+
#endif
10+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
HEXDOM_PLUGIN_PATH=/home/levy/Programming/graphite/plugins/OGF/hexdom/
2+
rm -f hexdom/*
3+
cp $HEXDOM_PLUGIN_PATH/algo/*.h hexdom/
4+
cp $HEXDOM_PLUGIN_PATH/algo/*.cpp hexdom/
5+
cd hexdom
6+
for i in `ls *.h *.cpp`
7+
do
8+
cat $i | sed -e 's|OGF/hexdom/algo|exploragram/hexdom|g' \
9+
-e 's|OGF/hexdom/common|exploragram/basic|g' \
10+
-e 's|hexdom_API|EXPLORAGRAM_API|g' > tempfile \
11+
-e 's|std::cerr\(.*\)std::endl|GEO::Logger::out("HexDom") \1 std::endl|g'
12+
mv tempfile $i
13+
done

0 commit comments

Comments
 (0)