Skip to content

Commit

Permalink
WIP - trying to make python work in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinGuillaume committed Dec 4, 2024
1 parent ceee941 commit 5c457d7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
1 change: 0 additions & 1 deletion lib/app/cmake/library.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ endif()
target_link_libraries(vtx_app PUBLIC EnTT::EnTT)
target_link_libraries(vtx_app_no_opengl PUBLIC EnTT::EnTT)
target_link_libraries(vtx_app_test PRIVATE vtx_app_no_opengl)
#target_link_libraries(vtx_app_test PRIVATE vtx_app)
target_link_libraries(vtx_app_test PRIVATE Catch2::Catch2WithMain)

vtx_register_build_directory_copy("${CMAKE_CURRENT_LIST_DIR}/../data" "./data")
Expand Down
13 changes: 10 additions & 3 deletions lib/app/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ def layout(self):
def generate(self):
tc = CMakeToolchain(self)
dir_shaders = self.dependencies["vtx_renderer"].conf_info.get("user.myconf:dir_shaders")
tc.cache_variables["DIR_SHADERS"] = dir_shaders
tc.cache_variables["DIR_SHADERS"] = dir_shaders
tc.generate()
for require, dependency in self.dependencies.items():
self.output.info("VTX -- Dependency is direct={}: {}".format(require.direct, dependency.ref))

def build(self):
cmake = CMake(self)
Expand All @@ -50,8 +52,13 @@ def package(self):
cmake.install()

def package_info(self):
self.cpp_info.components["vtx_app_no_opengl"].libs = ["vtx_app_no_opengl"]
self.cpp_info.components["vtx_app_no_opengl"].set_property("cmake_target_name", "vtx_app::vtx_app_no_opengl")
self.cpp_info.components["vtx_app"].libs = ["vtx_app"]
self.cpp_info.components["vtx_app"].set_property("cmake_target_name", "vtx_app::vtx_app")
self.cpp_info.components["vtx_app"].requires = ["vtx_util::vtx_util", "vtx_renderer::vtx_renderer", "vtx_io::vtx_io", "vtx_core::vtx_core", "entt::entt" ]
self.cpp_info.components["vtx_app_no_opengl"].libs = ["vtx_app_no_opengl"]
self.cpp_info.components["vtx_app_no_opengl"].set_property("cmake_target_name", "vtx_app::vtx_app_no_opengl")
self.cpp_info.components["vtx_app_no_opengl"].requires = ["vtx_util::vtx_util", "vtx_renderer::vtx_renderer_no_opengl", "vtx_io::vtx_io", "vtx_core::vtx_core", "entt::entt" ]
self.cpp_info.components["vtx_app_test"].libs = ["vtx_app_test"]
self.cpp_info.components["vtx_app_test"].set_property("cmake_target_name", "vtx_app::vtx_app")
self.cpp_info.components["vtx_app_test"].requires = ["vtx_util::vtx_util", "vtx_renderer::vtx_renderer_no_opengl", "vtx_app_no_opengl", "vtx_io::vtx_io", "vtx_core::vtx_core", "entt::entt", "catch2::catch2" ]

2 changes: 1 addition & 1 deletion lib/python_binding/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ project(vtx_python_binding)

find_package(vtx_util CONFIG REQUIRED)
find_package(vtx_core CONFIG REQUIRED)
find_package(vtx_app CONFIG REQUIRED)
find_package(vtx_app CONFIG REQUIRED )
find_package(vtx_io CONFIG REQUIRED)
find_package(pybind11 REQUIRED)
find_package(EnTT CONFIG REQUIRED)
Expand Down

0 comments on commit 5c457d7

Please sign in to comment.