Skip to content

Commit

Permalink
conan scripts + fix all cmake install
Browse files Browse the repository at this point in the history
  • Loading branch information
sguionni committed Nov 10, 2023
1 parent ece60a0 commit a8ffbcc
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/app/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ add_custom_target(vtx_app_test_copy_data ALL COMMAND ${CMAKE_COMMAND} -E copy_di
add_dependencies(vtx_app_test vtx_app_test_copy_data)

install(TARGETS vtx_app_test)
install(DIRECTORY data DESTINATION .)
install(DIRECTORY data DESTINATION bin)
11 changes: 11 additions & 0 deletions lib/conan_editable_add_all.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@ECHO OFF
conan editable add app
conan editable add core
conan editable add io
conan editable io/chemfiles
conan editable add python_binding
conan editable add renderer
conan editable add tool
conan editable add ui
conan editable add util
PAUSE
11 changes: 11 additions & 0 deletions lib/conan_editable_remove_all.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@ECHO OFF
conan editable remove app
conan editable remove core
conan editable remove io
conan editable remove io/chemfiles
conan editable remove python_binding
conan editable remove renderer
conan editable remove tool
conan editable remove ui
conan editable remove util
PAUSE
11 changes: 11 additions & 0 deletions lib/conan_export_all.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@ECHO OFF
conan export app
conan export core
conan export io
conan export io/chemfiles
conan export python_binding
conan export renderer
conan export tool
conan export ui
conan export util
PAUSE
3 changes: 3 additions & 0 deletions lib/conan_remove_vtx_all.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@ECHO OFF
conan remove vtx* -c
PAUSE
2 changes: 1 addition & 1 deletion lib/io/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ add_custom_target(vtx_io_test_copy_data ALL COMMAND ${CMAKE_COMMAND} -E copy_dir
add_dependencies(vtx_io_test vtx_io_test_copy_data)

install(TARGETS vtx_io_test)
install(DIRECTORY data DESTINATION .)
install(DIRECTORY data DESTINATION bin)
2 changes: 1 addition & 1 deletion lib/python_binding/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def package_info(self):
dir_python_script = os.path.join(self.package_folder, "python_script")
self.conf_info.define("user.myconf:dir_python_script", dir_python_script)
path_python_module = os.path.join(self.package_folder, "bin", "**", "*.pyd")
files = glob.glob(os.path.normpath(self.package_folder + "/**/*.pyd"), recursive=True)
files = glob.glob(path_python_module, recursive=True)
if len(files) > 0:
print("Found python module: " + files[0])
self.conf_info.define("user.myconf:path_python_module", files[0])
6 changes: 3 additions & 3 deletions lib/python_binding/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ include(Catch)
catch_discover_tests(vtx_python_binding_test)

install(TARGETS vtx_python_binding_test)
install(DIRECTORY ${DIR_PYTHON_SCRIPT} DESTINATION .)
install(FILES ${PATH_PYTHON_MODULE} DESTINATION PyTX.pyd)
install(DIRECTORY data DESTINATION .)
install(DIRECTORY ${DIR_PYTHON_SCRIPT} DESTINATION bin)
install(FILES ${PATH_PYTHON_MODULE} DESTINATION bin RENAME PyTX.pyd)
install(DIRECTORY data DESTINATION bin)
2 changes: 1 addition & 1 deletion lib/renderer/bench/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ add_custom_target(
add_dependencies(vtx_renderer_bench vtx_renderer_bench_copy_shader)

install(TARGETS vtx_renderer_bench)
install(DIRECTORY ${DIR_SHADERS} DESTINATION .)
install(DIRECTORY ${DIR_SHADERS} DESTINATION bin)
2 changes: 1 addition & 1 deletion lib/ui/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ include(Catch)
catch_discover_tests(vtx_ui_test)

install(TARGETS vtx_ui_test)
install(DIRECTORY data DESTINATION .)
install(DIRECTORY data DESTINATION bin)
#TODO: install dll too.

0 comments on commit a8ffbcc

Please sign in to comment.