panda3d/direct/src/dcparse/CMakeLists.txt
Sam Edwards d008037244 CMake: Use Python::Module, not Python::Python, for extension linkage
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.
2019-08-15 16:47:53 -06:00

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)