1
1
diff --git a/CMakeLists.txt b/CMakeLists.txt
2
- index 1fd796c..05bd735 100644
2
+ index 6934fca..c2f855d 100644
3
3
--- a/CMakeLists.txt
4
4
+++ b/CMakeLists.txt
5
- @@ -53 ,7 +53 ,7 @@ endif()
6
- include(cmake/geogram. cmake)
5
+ @@ -68 ,7 +68 ,7 @@ set(GEOGRAM_INSTALL_PKGCONFIG_DIR ${CMAKE_INSTALL_LIBDIR}/pkgconfig CACHE PATH "
6
+ set(GEOGRAM_INSTALL_CMAKE_DIR ${CMAKE_INSTALL_LIBDIR}/ cmake/modules CACHE PATH "CMake file install destination" )
7
7
8
8
9
9
- set(VORPALINE_INCLUDE_SUBPATH geogram${VORPALINE_VERSION_MAJOR})
10
10
+ set(VORPALINE_INCLUDE_SUBPATH ./)
11
11
12
12
# Determine the current Build-OS (Build-platform without the compiler info)
13
13
string(REGEX REPLACE "-[^-]+$" "" VORPALINE_OS ${VORPALINE_PLATFORM})
14
- @@ -115 ,6 +115 ,7 @@ endif()
14
+ @@ -130 ,6 +130 ,7 @@ endif()
15
15
add_subdirectory(src/lib/third_party)
16
16
17
17
if(GEOGRAM_WITH_GRAPHICS)
18
- + find_package(GLFW3 REQUIRED)
19
- add_subdirectory(src/lib/geogram_gfx)
18
+ + find_package(GLFW3 REQUIRED)
19
+ add_subdirectory(src/lib/geogram_gfx)
20
20
endif()
21
21
22
- @@ -145 ,7 +146 ,44 @@ file(REMOVE ${CMAKE_BINARY_DIR}/doc/LICENSE.txt)
22
+ @@ -160 ,7 +161 ,44 @@ file(REMOVE ${CMAKE_BINARY_DIR}/doc/LICENSE.txt)
23
23
24
24
# FindGeogram.cmake
25
25
26
- - install(FILES cmake/FindGeogram.cmake DESTINATION lib/cmake/modules COMPONENT devkit)
26
+ - install(FILES cmake/FindGeogram.cmake DESTINATION ${GEOGRAM_INSTALL_CMAKE_DIR} COMPONENT devkit)
27
27
+ # This installation is not suitable for vcpkg
28
28
+ # install(FILES cmake/FindGeogram.cmake DESTINATION lib/cmake/modules COMPONENT devkit)
29
29
+
@@ -66,26 +66,31 @@ index 1fd796c..05bd735 100644
66
66
# Configure CPack
67
67
68
68
diff --git a/src/lib/geogram/CMakeLists.txt b/src/lib/geogram/CMakeLists.txt
69
- index ed2dca0..30f87b7 100644
69
+ index d50b3d2..41ec3e4 100644
70
70
--- a/src/lib/geogram/CMakeLists.txt
71
71
+++ b/src/lib/geogram/CMakeLists.txt
72
- @@ -45 ,7 +45 ,7 @@ target_include_directories(geogram PRIVATE
72
+ @@ -69 ,7 +69 ,7 @@ endif()
73
73
# path for targets that depend on geogram.
74
74
# See: https://cmake.org/cmake/help/v3.3/command/target_include_directories.html
75
75
# https://stackoverflow.com/questions/26243169/cmake-target-include-directories-meaning-of-scope
76
76
- target_include_directories(geogram PUBLIC ${PROJECT_SOURCE_DIR}/src/lib)
77
77
+ target_include_directories(geogram PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src/lib>)
78
78
79
79
if(ANDROID)
80
- target_include_directories(geogram PRIVATE
81
- @@ -72,8 +72,19 @@ if(WIN32)
82
- target_link_libraries(geogram psapi )
80
+ target_include_directories(geogram PRIVATE
81
+ @@ -78,6 +78,9 @@ ${ANDROID_NDK}/sources/android/native_app_glue
82
+ message(STATUS "building for Android" )
83
83
endif()
84
84
85
85
+ if(WIN32 AND VORPALINE_BUILD_DYNAMIC)
86
86
+ target_compile_definitions(geogram PUBLIC GEO_DYNAMIC_LIBS)
87
87
+ endif()
88
- +
88
+
89
+ set_target_properties(geogram PROPERTIES
90
+ VERSION ${VORPALINE_VERSION}
91
+ @@ -101,7 +104,14 @@ target_link_libraries(geogram ${GEOGRAMPLUS_LIBS})
92
+ endif()
93
+
89
94
# Install the library
90
95
- install_devkit_targets(geogram)
91
96
+ install(
@@ -100,10 +105,10 @@ index ed2dca0..30f87b7 100644
100
105
# Install include files for the standard devkit
101
106
install(
102
107
diff --git a/src/lib/geogram_gfx/CMakeLists.txt b/src/lib/geogram_gfx/CMakeLists.txt
103
- index a6f8372..195b1e2 100644
108
+ index 391e607..13b6bcb 100644
104
109
--- a/src/lib/geogram_gfx/CMakeLists.txt
105
110
+++ b/src/lib/geogram_gfx/CMakeLists.txt
106
- @@ -52,14 +52,21 @@ if(VORPALINE_BUILD_DYNAMIC )
111
+ @@ -52,14 +52,21 @@ target_link_libraries(geogram_gfx ${OPENGL_LIBRARIES} )
107
112
endif()
108
113
109
114
# Install the library
@@ -119,20 +124,20 @@ index a6f8372..195b1e2 100644
119
124
120
125
# Install include files for the standard devkit
121
126
install(
122
- DIRECTORY .
123
- DESTINATION include/${VORPALINE_INCLUDE_SUBPATH}/geogram_gfx
124
- COMPONENT devkit
125
- - FILES_MATCHING PATTERN *.h
126
- + FILES_MATCHING PATTERN *.h PATTERN *.xpm # xpm is the colrbar file
127
+ DIRECTORY .
128
+ DESTINATION include/${VORPALINE_INCLUDE_SUBPATH}/geogram_gfx
129
+ COMPONENT devkit
130
+ - FILES_MATCHING PATTERN *.h
131
+ + FILES_MATCHING PATTERN *.h PATTERN *.xpm # xpm is the colrbar file
127
132
)
128
133
129
134
# Install include files for the full devkit
130
135
@@ -67,7 +74,7 @@ install(
131
- DIRECTORY .
132
- DESTINATION include/${VORPALINE_INCLUDE_SUBPATH}/geogram_gfx
133
- COMPONENT devkit-full
134
- - FILES_MATCHING PATTERN *.h
135
- + FILES_MATCHING PATTERN *.h PATTERN *.xpm # xpm is the colrbar file
136
+ DIRECTORY .
137
+ DESTINATION include/${VORPALINE_INCLUDE_SUBPATH}/geogram_gfx
138
+ COMPONENT devkit-full
139
+ - FILES_MATCHING PATTERN *.h
140
+ + FILES_MATCHING PATTERN *.h PATTERN *.xpm # xpm is the colrbar file
136
141
)
137
142
138
143
install(
0 commit comments