File: f3dPython.cmake

package info (click to toggle)
f3d 3.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 23,504 kB
  • sloc: cpp: 99,106; python: 758; sh: 342; xml: 223; java: 101; javascript: 95; makefile: 25
file content (13 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
# On Windows, usage of PATH to find the DLL is not possible anymore
# see https://stackoverflow.com/a/64303856/2609654
# This function should be called to generate F3D_ABSOLUTE_DLLS_FIXUP and F3D_RELATIVE_DLLS_FIXUP
# CMake variables used to fill the "blessed" paths for Windows
function(f3d_python_windows_dll_fixup)
	cmake_parse_arguments(F3D_DLL_FIXUP "" "OUTPUT" "PATHS" ${ARGN})

	set(_fixup "generated at build\n")
	foreach(_path ${F3D_DLL_FIXUP_PATHS})
		set(_fixup "${_fixup}    '${_path}',\n")
	endforeach()
	set(${F3D_DLL_FIXUP_OUTPUT} ${_fixup} PARENT_SCOPE)
endfunction()