CMake: Update egg/physics metalibs to add_metalib(... INIT ...)

This commit is contained in:
Sam Edwards 2018-06-12 16:32:26 -06:00
parent 93306c0aa5
commit c96a49e897
2 changed files with 6 additions and 4 deletions

View File

@ -2,9 +2,9 @@ if(NOT HAVE_EGG)
return()
endif()
set(PANDAEGG_LINK_TARGETS p3egg p3egg2pg)
add_metalib(pandaegg pandaegg.cxx COMPONENTS ${PANDAEGG_LINK_TARGETS})
add_metalib(pandaegg
INIT init_libpandaegg pandaegg.h
COMPONENTS p3egg p3egg2pg)
target_link_libraries(pandaegg panda)
install(TARGETS pandaegg DESTINATION lib)

View File

@ -1,3 +1,5 @@
add_metalib(pandaphysics pandaphysics.cxx COMPONENTS p3physics p3particlesystem)
add_metalib(pandaphysics
INIT init_libpandaphysics pandaphysics.h
COMPONENTS p3physics p3particlesystem)
install(TARGETS pandaphysics DESTINATION lib)