Skip to content

Commit 031e14f

Browse files
committed
Handle plugin info in cmake
1 parent 07b718e commit 031e14f

9 files changed

Lines changed: 45 additions & 0 deletions

File tree

ExampleAnalysis/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
9999
--prefix ${ManiVault_INSTALL_DIR}/$<CONFIGURATION>
100100
)
101101

102+
# Append plugin version to output file
103+
# 0 disables automatic folder placement (same as plugin type)
104+
# since we want to place all example plugins in a separate folder
105+
mv_handle_plugin_config(${PROJECT_NAME} 0)
106+
102107
# -----------------------------------------------------------------------------
103108
# Miscellaneous
104109
# -----------------------------------------------------------------------------

ExampleData/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
120120
--prefix ${ManiVault_INSTALL_DIR}/$<CONFIGURATION>
121121
)
122122

123+
# Append plugin version to output file
124+
# 0 disables automatic folder placement (same as plugin type)
125+
# since we want to place all example plugins in a separate folder
126+
mv_handle_plugin_config(${PROJECT_NAME} 0)
127+
123128
# -----------------------------------------------------------------------------
124129
# Miscellaneous
125130
# -----------------------------------------------------------------------------

ExampleDependencies/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ set_target_properties(hwy hwy_contrib hwy_list_targets hwy_test
151151
# Automatically available when using find_package(ManiVault)
152152
mv_install_dependencies(${PROJECT_NAME} "hwy" "hwy_contrib")
153153

154+
# Append plugin version to output file
155+
# 0 disables automatic folder placement (same as plugin type)
156+
# since we want to place all example plugins in a separate folder
157+
mv_handle_plugin_config(${PROJECT_NAME} 0)
158+
154159
# -----------------------------------------------------------------------------
155160
# Miscellaneous
156161
# -----------------------------------------------------------------------------

ExampleLoader/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
9696
--prefix ${ManiVault_INSTALL_DIR}/$<CONFIGURATION>
9797
)
9898

99+
# Append plugin version to output file
100+
# 0 disables automatic folder placement (same as plugin type)
101+
# since we want to place all example plugins in a separate folder
102+
mv_handle_plugin_config(${PROJECT_NAME} 0)
103+
99104
# -----------------------------------------------------------------------------
100105
# Miscellaneous
101106
# -----------------------------------------------------------------------------

ExampleTransformation/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
9696
--prefix ${ManiVault_INSTALL_DIR}/$<CONFIGURATION>
9797
)
9898

99+
# Append plugin version to output file
100+
# 0 disables automatic folder placement (same as plugin type)
101+
# since we want to place all example plugins in a separate folder
102+
mv_handle_plugin_config(${PROJECT_NAME} 0)
103+
99104
# -----------------------------------------------------------------------------
100105
# Miscellaneous
101106
# -----------------------------------------------------------------------------

ExampleView/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
100100
--prefix ${ManiVault_INSTALL_DIR}/$<CONFIGURATION>
101101
)
102102

103+
# Append plugin version to output file
104+
# 0 disables automatic folder placement (same as plugin type)
105+
# since we want to place all example plugins in a separate folder
106+
mv_handle_plugin_config(${PROJECT_NAME} 0)
107+
103108
# -----------------------------------------------------------------------------
104109
# Miscellaneous
105110
# -----------------------------------------------------------------------------

ExampleViewJS/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
115115
--prefix ${ManiVault_INSTALL_DIR}/$<CONFIGURATION>
116116
)
117117

118+
# Append plugin version to output file
119+
# 0 disables automatic folder placement (same as plugin type)
120+
# since we want to place all example plugins in a separate folder
121+
mv_handle_plugin_config(${PROJECT_NAME} 0)
122+
118123
# -----------------------------------------------------------------------------
119124
# Miscellaneous
120125
# -----------------------------------------------------------------------------

ExampleViewOpenGL/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
112112
--prefix ${ManiVault_INSTALL_DIR}/$<CONFIGURATION>
113113
)
114114

115+
# Append plugin version to output file
116+
# 0 disables automatic folder placement (same as plugin type)
117+
# since we want to place all example plugins in a separate folder
118+
mv_handle_plugin_config(${PROJECT_NAME} 0)
119+
115120
# -----------------------------------------------------------------------------
116121
# Miscellaneous
117122
# -----------------------------------------------------------------------------

ExampleWriter/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
9696
--prefix ${ManiVault_INSTALL_DIR}/$<CONFIGURATION>
9797
)
9898

99+
# Append plugin version to output file
100+
# 0 disables automatic folder placement (same as plugin type)
101+
# since we want to place all example plugins in a separate folder
102+
mv_handle_plugin_config(${PROJECT_NAME} 0)
103+
99104
# -----------------------------------------------------------------------------
100105
# Miscellaneous
101106
# -----------------------------------------------------------------------------

0 commit comments

Comments
 (0)