mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00

CMake 3.15+ provides the former, which extension modules should link against in order to ensure the ABI-appropriate linkage for the platform. For older versions of CMake, try to hack up the correct linkage for the platform. If the platform isn't recognized, tell the user to upgrade CMake. This also tweaks p3pystub just a bit, since now it's actually relied upon to resolve runtime link issues when p3dcparse pulls in direct, as p3dcparse doesn't link against Python at all.
4 lines
163 B
CMake
4 lines
163 B
CMake
add_executable(p3dcparse dcparse.cxx)
|
|
target_link_libraries(p3dcparse p3direct p3pystub)
|
|
install(TARGETS p3dcparse EXPORT Direct COMPONENT Direct DESTINATION bin)
|