From fa1e1a2e637504cd63732d72967d104fff8e3c76 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Fri, 31 Aug 2018 19:07:26 -0600 Subject: [PATCH] CMake: Tidy up installation directory Don't install "object-Configuration/" directories when using metalibs, and also put .dll files in bin/ on Windows. --- CMakeLists.txt | 4 ++++ direct/CMakeLists.txt | 2 +- direct/src/dcparser/CMakeLists.txt | 4 +++- direct/src/deadrec/CMakeLists.txt | 4 +++- direct/src/distributed/CMakeLists.txt | 4 +++- direct/src/interval/CMakeLists.txt | 4 +++- direct/src/motiontrail/CMakeLists.txt | 4 +++- direct/src/showbase/CMakeLists.txt | 4 +++- dtool/metalibs/dtool/CMakeLists.txt | 2 +- dtool/metalibs/dtoolconfig/CMakeLists.txt | 2 +- dtool/src/dconfig/CMakeLists.txt | 4 +++- dtool/src/dtoolbase/CMakeLists.txt | 4 +++- dtool/src/dtoolutil/CMakeLists.txt | 4 +++- dtool/src/interrogatedb/CMakeLists.txt | 4 +++- dtool/src/prc/CMakeLists.txt | 4 +++- panda/metalibs/panda/CMakeLists.txt | 2 +- panda/metalibs/pandaegg/CMakeLists.txt | 2 +- panda/metalibs/pandaexpress/CMakeLists.txt | 2 +- panda/metalibs/pandagl/CMakeLists.txt | 2 +- panda/metalibs/pandaphysics/CMakeLists.txt | 2 +- panda/src/audio/CMakeLists.txt | 4 +++- panda/src/audiotraits/CMakeLists.txt | 6 +++--- panda/src/chan/CMakeLists.txt | 4 +++- panda/src/char/CMakeLists.txt | 4 +++- panda/src/collide/CMakeLists.txt | 4 +++- panda/src/cull/CMakeLists.txt | 4 +++- panda/src/device/CMakeLists.txt | 4 +++- panda/src/dgraph/CMakeLists.txt | 4 +++- panda/src/display/CMakeLists.txt | 4 +++- panda/src/downloader/CMakeLists.txt | 4 +++- panda/src/dxml/CMakeLists.txt | 4 +++- panda/src/egg/CMakeLists.txt | 4 +++- panda/src/egg2pg/CMakeLists.txt | 4 +++- panda/src/event/CMakeLists.txt | 4 +++- panda/src/express/CMakeLists.txt | 4 +++- panda/src/ffmpeg/CMakeLists.txt | 2 +- panda/src/framework/CMakeLists.txt | 2 +- panda/src/glgsg/CMakeLists.txt | 4 +++- panda/src/glstuff/CMakeLists.txt | 4 +++- panda/src/glxdisplay/CMakeLists.txt | 4 +++- panda/src/gobj/CMakeLists.txt | 4 +++- panda/src/grutil/CMakeLists.txt | 4 +++- panda/src/gsgbase/CMakeLists.txt | 4 +++- panda/src/linmath/CMakeLists.txt | 4 +++- panda/src/mathutil/CMakeLists.txt | 4 +++- panda/src/movies/CMakeLists.txt | 4 +++- panda/src/nativenet/CMakeLists.txt | 4 +++- panda/src/net/CMakeLists.txt | 4 +++- panda/src/ode/CMakeLists.txt | 2 +- panda/src/parametrics/CMakeLists.txt | 4 +++- panda/src/particlesystem/CMakeLists.txt | 4 +++- panda/src/pgraph/CMakeLists.txt | 4 +++- panda/src/pgraphnodes/CMakeLists.txt | 4 +++- panda/src/pgui/CMakeLists.txt | 4 +++- panda/src/physics/CMakeLists.txt | 4 +++- panda/src/pipeline/CMakeLists.txt | 4 +++- panda/src/pnmimage/CMakeLists.txt | 4 +++- panda/src/pnmimagetypes/CMakeLists.txt | 4 +++- panda/src/pnmtext/CMakeLists.txt | 4 +++- panda/src/pstatclient/CMakeLists.txt | 4 +++- panda/src/putil/CMakeLists.txt | 4 +++- panda/src/recorder/CMakeLists.txt | 4 +++- panda/src/text/CMakeLists.txt | 4 +++- panda/src/tform/CMakeLists.txt | 4 +++- panda/src/x11display/CMakeLists.txt | 4 +++- 65 files changed, 174 insertions(+), 66 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 03ed8286a8..7e23de112f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,7 @@ set(CMAKE_BINARY_DIR "${CMAKE_BINARY_DIR}/cmake") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin") set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib") set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib") +set(MODULE_DESTINATION "lib") # Runtime code assumes that dynamic modules have a "lib" prefix; Windows # assumes that debug libraries have a _d suffix. @@ -41,6 +42,9 @@ if(WIN32) # On Windows, modules (DLLs) are located in bin; lib is just for .lib files set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin") + if(BUILD_SHARED_LIBS) + set(MODULE_DESTINATION "bin") + endif() endif() # Set warning levels diff --git a/direct/CMakeLists.txt b/direct/CMakeLists.txt index 771e43ec14..cfda39d6b0 100644 --- a/direct/CMakeLists.txt +++ b/direct/CMakeLists.txt @@ -24,7 +24,7 @@ add_metalib(p3direct INIT init_libdirect direct.h COMPONENTS ${P3DIRECT_COMPONEN set_property(TARGET p3direct PROPERTY LINKER_LANGUAGE "CXX") # Installation: -install(TARGETS p3direct DESTINATION lib) +install(TARGETS p3direct DESTINATION lib RUNTIME DESTINATION bin) if(HAVE_PYTHON) # Now for the Python side of everything diff --git a/direct/src/dcparser/CMakeLists.txt b/direct/src/dcparser/CMakeLists.txt index 99a4f13844..9a4faff8e9 100644 --- a/direct/src/dcparser/CMakeLists.txt +++ b/direct/src/dcparser/CMakeLists.txt @@ -53,5 +53,7 @@ target_link_libraries(p3dcparser p3directbase panda) target_use_packages(p3dcparser PYTHON) target_interrogate(p3dcparser ${P3DCPARSER_HEADERS} ${P3DCPARSER_SOURCES}) -install(TARGETS p3dcparser DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3dcparser DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3DCPARSER_HEADERS} DESTINATION include/panda3d) diff --git a/direct/src/deadrec/CMakeLists.txt b/direct/src/deadrec/CMakeLists.txt index 50813ca96e..34bf4f2e48 100644 --- a/direct/src/deadrec/CMakeLists.txt +++ b/direct/src/deadrec/CMakeLists.txt @@ -11,5 +11,7 @@ add_component_library(p3deadrec SYMBOL BUILDING_DIRECT_DEADREC target_link_libraries(p3deadrec p3directbase panda) target_interrogate(p3deadrec ALL) -install(TARGETS p3deadrec DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3deadrec DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3DEADREC_HEADERS} DESTINATION include/panda3d) diff --git a/direct/src/distributed/CMakeLists.txt b/direct/src/distributed/CMakeLists.txt index e44be0d5c1..4ae6e406bd 100644 --- a/direct/src/distributed/CMakeLists.txt +++ b/direct/src/distributed/CMakeLists.txt @@ -21,5 +21,7 @@ target_link_libraries(p3distributed p3directbase p3dcparser panda) target_use_packages(p3distributed PYTHON) target_interrogate(p3distributed ALL) -install(TARGETS p3distributed DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3distributed DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3DISTRIBUTED_HEADERS} DESTINATION include/panda3d) diff --git a/direct/src/interval/CMakeLists.txt b/direct/src/interval/CMakeLists.txt index 397617c1e8..4ded7c6463 100644 --- a/direct/src/interval/CMakeLists.txt +++ b/direct/src/interval/CMakeLists.txt @@ -41,5 +41,7 @@ add_component_library(p3interval SYMBOL BUILDING_DIRECT_INTERVAL target_link_libraries(p3interval p3directbase panda) target_interrogate(p3interval ALL) -install(TARGETS p3interval DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3interval DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3INTERVAL_HEADERS} DESTINATION include/panda3d) diff --git a/direct/src/motiontrail/CMakeLists.txt b/direct/src/motiontrail/CMakeLists.txt index 6e70bc5a33..3a54b9873b 100644 --- a/direct/src/motiontrail/CMakeLists.txt +++ b/direct/src/motiontrail/CMakeLists.txt @@ -11,5 +11,7 @@ add_component_library(p3motiontrail SYMBOL BUILDING_DIRECT_MOTIONTRAIL target_link_libraries(p3motiontrail p3directbase panda) target_interrogate(p3motiontrail ALL) -install(TARGETS p3motiontrail DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3motiontrail DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3MOTIONTRAIL_HEADERS} DESTINATION include/panda3d) diff --git a/direct/src/showbase/CMakeLists.txt b/direct/src/showbase/CMakeLists.txt index e9bdc8e9f5..0946ca10c5 100644 --- a/direct/src/showbase/CMakeLists.txt +++ b/direct/src/showbase/CMakeLists.txt @@ -3,4 +3,6 @@ add_component_library(p3showbase NOINIT SYMBOL BUILDING_DIRECT_SHOWBASE target_link_libraries(p3showbase p3directbase panda) target_interrogate(p3showbase ALL) -install(TARGETS p3showbase DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3showbase DESTINATION lib RUNTIME DESTINATION bin) +endif() diff --git a/dtool/metalibs/dtool/CMakeLists.txt b/dtool/metalibs/dtool/CMakeLists.txt index 78836cd833..4dee10d908 100644 --- a/dtool/metalibs/dtool/CMakeLists.txt +++ b/dtool/metalibs/dtool/CMakeLists.txt @@ -1,3 +1,3 @@ add_metalib(p3dtool INIT init_libdtool dtool.h COMPONENTS p3dtoolutil p3dtoolbase) -install(TARGETS p3dtool DESTINATION lib) +install(TARGETS p3dtool DESTINATION lib RUNTIME DESTINATION bin) diff --git a/dtool/metalibs/dtoolconfig/CMakeLists.txt b/dtool/metalibs/dtoolconfig/CMakeLists.txt index 85c89fc4bc..977c3e0ede 100644 --- a/dtool/metalibs/dtoolconfig/CMakeLists.txt +++ b/dtool/metalibs/dtoolconfig/CMakeLists.txt @@ -1,3 +1,3 @@ set(DTOOLCONFIG_LINK_TARGETS p3prc p3dconfig p3interrogatedb) add_metalib(p3dtoolconfig INIT init_libdtoolconfig dtoolconfig.h COMPONENTS ${DTOOLCONFIG_LINK_TARGETS}) -install(TARGETS p3dtoolconfig DESTINATION lib) +install(TARGETS p3dtoolconfig DESTINATION lib RUNTIME DESTINATION bin) diff --git a/dtool/src/dconfig/CMakeLists.txt b/dtool/src/dconfig/CMakeLists.txt index 58a85c4f98..5292450558 100644 --- a/dtool/src/dconfig/CMakeLists.txt +++ b/dtool/src/dconfig/CMakeLists.txt @@ -10,5 +10,7 @@ add_component_library(p3dconfig NOINIT SYMBOL BUILDING_DTOOL_DCONFIG ${P3DCONFIG_HEADERS} ${P3DCONFIG_SOURCES}) target_link_libraries(p3dconfig p3prc) -install(TARGETS p3dconfig DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3dconfig DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3DCONFIG_HEADERS} DESTINATION include/panda3d) diff --git a/dtool/src/dtoolbase/CMakeLists.txt b/dtool/src/dtoolbase/CMakeLists.txt index 9c6a35faad..e61ea4f8cb 100644 --- a/dtool/src/dtoolbase/CMakeLists.txt +++ b/dtool/src/dtoolbase/CMakeLists.txt @@ -93,5 +93,7 @@ target_include_directories(p3dtoolbase PUBLIC ${CMAKE_CURRENT_BINARY_DIR}) target_use_packages(p3dtoolbase THREADS EIGEN) target_interrogate(p3dtoolbase ${P3DTOOLBASE_SOURCES} EXTENSIONS ${P3DTOOLBASE_IGATEEXT}) -install(TARGETS p3dtoolbase DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3dtoolbase DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3DTOOLBASE_HEADERS} DESTINATION include/panda3d) diff --git a/dtool/src/dtoolutil/CMakeLists.txt b/dtool/src/dtoolutil/CMakeLists.txt index 182b69f91d..872eab7b1d 100644 --- a/dtool/src/dtoolutil/CMakeLists.txt +++ b/dtool/src/dtoolutil/CMakeLists.txt @@ -78,5 +78,7 @@ if(APPLE) target_link_libraries(p3dtoolutil ${FOUNDATION_LIBRARY} ${APPKIT_LIBRARY}) endif() -install(TARGETS p3dtoolutil DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3dtoolutil DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3DTOOLUTIL_HEADERS} DESTINATION include/panda3d) diff --git a/dtool/src/interrogatedb/CMakeLists.txt b/dtool/src/interrogatedb/CMakeLists.txt index 305e64efbe..20e942b7d0 100644 --- a/dtool/src/interrogatedb/CMakeLists.txt +++ b/dtool/src/interrogatedb/CMakeLists.txt @@ -39,7 +39,9 @@ add_component_library(p3interrogatedb NOINIT SYMBOL BUILDING_INTERROGATEDB target_link_libraries(p3interrogatedb p3dconfig) target_use_packages(p3interrogatedb PYTHON) -install(TARGETS p3interrogatedb DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3interrogatedb DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3INTERROGATEDB_HEADERS} DESTINATION include/panda3d) # ALSO: This has an Interrogate binding! Take care of that if we want it. diff --git a/dtool/src/prc/CMakeLists.txt b/dtool/src/prc/CMakeLists.txt index e6457f8685..8ba005115e 100644 --- a/dtool/src/prc/CMakeLists.txt +++ b/dtool/src/prc/CMakeLists.txt @@ -80,5 +80,7 @@ target_link_libraries(p3prc p3dtool) target_use_packages(p3prc OPENSSL) target_interrogate(p3prc ALL EXTENSIONS ${P3PRC_IGATEEXT}) -install(TARGETS p3prc DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3prc DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3PRC_HEADERS} DESTINATION include/panda3d) diff --git a/panda/metalibs/panda/CMakeLists.txt b/panda/metalibs/panda/CMakeLists.txt index a628fe3ad6..67e0180619 100644 --- a/panda/metalibs/panda/CMakeLists.txt +++ b/panda/metalibs/panda/CMakeLists.txt @@ -13,4 +13,4 @@ endif() add_metalib(panda INIT init_libpanda panda.h COMPONENTS ${PANDA_LINK_TARGETS}) -install(TARGETS panda DESTINATION lib) +install(TARGETS panda DESTINATION lib RUNTIME DESTINATION bin) diff --git a/panda/metalibs/pandaegg/CMakeLists.txt b/panda/metalibs/pandaegg/CMakeLists.txt index 80ea6d9cd1..2a1f1085cb 100644 --- a/panda/metalibs/pandaegg/CMakeLists.txt +++ b/panda/metalibs/pandaegg/CMakeLists.txt @@ -7,4 +7,4 @@ add_metalib(pandaegg COMPONENTS p3egg p3egg2pg) target_link_libraries(pandaegg panda) -install(TARGETS pandaegg DESTINATION lib) +install(TARGETS pandaegg DESTINATION lib RUNTIME DESTINATION bin) diff --git a/panda/metalibs/pandaexpress/CMakeLists.txt b/panda/metalibs/pandaexpress/CMakeLists.txt index 75fa8c7438..d76f00ca11 100644 --- a/panda/metalibs/pandaexpress/CMakeLists.txt +++ b/panda/metalibs/pandaexpress/CMakeLists.txt @@ -2,4 +2,4 @@ add_metalib(pandaexpress INIT init_libpandaexpress pandaexpress.h COMPONENTS p3downloader p3express) -install(TARGETS pandaexpress DESTINATION lib) +install(TARGETS pandaexpress DESTINATION lib RUNTIME DESTINATION bin) diff --git a/panda/metalibs/pandagl/CMakeLists.txt b/panda/metalibs/pandagl/CMakeLists.txt index d65abc48f5..5bcfcd2164 100644 --- a/panda/metalibs/pandagl/CMakeLists.txt +++ b/panda/metalibs/pandagl/CMakeLists.txt @@ -28,5 +28,5 @@ if(HAVE_GL) add_metalib(pandagl ${MODULE_TYPE} pandagl.cxx COMPONENTS ${PANDAGL_LINK_TARGETS}) set_target_properties(pandagl PROPERTIES DEFINE_SYMBOL BUILDING_PANDAGL) - install(TARGETS pandagl DESTINATION lib) + install(TARGETS pandagl DESTINATION ${MODULE_DESTINATION}) endif() diff --git a/panda/metalibs/pandaphysics/CMakeLists.txt b/panda/metalibs/pandaphysics/CMakeLists.txt index 5a9d2ed0db..1f55fb4130 100644 --- a/panda/metalibs/pandaphysics/CMakeLists.txt +++ b/panda/metalibs/pandaphysics/CMakeLists.txt @@ -2,4 +2,4 @@ add_metalib(pandaphysics INIT init_libpandaphysics pandaphysics.h COMPONENTS p3physics p3particlesystem) -install(TARGETS pandaphysics DESTINATION lib) +install(TARGETS pandaphysics DESTINATION lib RUNTIME DESTINATION bin) diff --git a/panda/src/audio/CMakeLists.txt b/panda/src/audio/CMakeLists.txt index f31638dd51..9d823bc896 100644 --- a/panda/src/audio/CMakeLists.txt +++ b/panda/src/audio/CMakeLists.txt @@ -26,5 +26,7 @@ add_component_library(p3audio NOINIT SYMBOL BUILDING_PANDA_AUDIO target_link_libraries(p3audio p3putil p3event p3movies p3linmath) target_interrogate(p3audio ALL) -install(TARGETS p3audio DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3audio DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3AUDIO_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/audiotraits/CMakeLists.txt b/panda/src/audiotraits/CMakeLists.txt index 266ca6f425..63bf44b87b 100644 --- a/panda/src/audiotraits/CMakeLists.txt +++ b/panda/src/audiotraits/CMakeLists.txt @@ -27,7 +27,7 @@ if(HAVE_RAD_MSS) target_link_libraries(p3miles_audio panda) target_use_packages(p3miles_audio MILES) - install(TARGETS p3miles_audio DESTINATION lib) + install(TARGETS p3miles_audio DESTINATION lib RUNTIME DESTINATION bin) endif() if(HAVE_FMODEX) @@ -46,7 +46,7 @@ if(HAVE_FMODEX) target_link_libraries(p3fmod_audio panda) target_use_packages(p3fmod_audio FMODEX) - install(TARGETS p3fmod_audio DESTINATION lib) + install(TARGETS p3fmod_audio DESTINATION lib RUNTIME DESTINATION bin) endif() if(HAVE_OPENAL) @@ -66,5 +66,5 @@ if(HAVE_OPENAL) target_link_libraries(p3openal_audio panda) target_use_packages(p3openal_audio OPENAL) - install(TARGETS p3openal_audio DESTINATION lib) + install(TARGETS p3openal_audio DESTINATION lib RUNTIME DESTINATION bin) endif() diff --git a/panda/src/chan/CMakeLists.txt b/panda/src/chan/CMakeLists.txt index 42278738e2..46d2076e23 100644 --- a/panda/src/chan/CMakeLists.txt +++ b/panda/src/chan/CMakeLists.txt @@ -58,5 +58,7 @@ add_component_library(p3chan NOINIT SYMBOL BUILDING_PANDA_CHAN target_link_libraries(p3chan p3pgraph) target_interrogate(p3chan ALL) -install(TARGETS p3chan DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3chan DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3CHAN_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/char/CMakeLists.txt b/panda/src/char/CMakeLists.txt index 7e62194281..f2c6cc9f69 100644 --- a/panda/src/char/CMakeLists.txt +++ b/panda/src/char/CMakeLists.txt @@ -24,5 +24,7 @@ add_component_library(p3char SYMBOL BUILDING_PANDA_CHAR target_link_libraries(p3char p3chan) target_interrogate(p3char ALL) -install(TARGETS p3char DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3char DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3CHAR_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/collide/CMakeLists.txt b/panda/src/collide/CMakeLists.txt index bd6f39c377..ef29604e87 100644 --- a/panda/src/collide/CMakeLists.txt +++ b/panda/src/collide/CMakeLists.txt @@ -68,7 +68,9 @@ add_component_library(p3collide SYMBOL BUILDING_PANDA_COLLIDE target_link_libraries(p3collide p3tform) target_interrogate(p3collide ALL) -install(TARGETS p3collide DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3collide DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3COLLIDE_HEADERS} DESTINATION include/panda3d) #begin test_bin_target diff --git a/panda/src/cull/CMakeLists.txt b/panda/src/cull/CMakeLists.txt index 47b7a7ee47..527dc439d0 100644 --- a/panda/src/cull/CMakeLists.txt +++ b/panda/src/cull/CMakeLists.txt @@ -26,5 +26,7 @@ add_component_library(p3cull SYMBOL BUILDING_PANDA_CULL target_link_libraries(p3cull p3pgraph) target_interrogate(p3cull ALL) -install(TARGETS p3cull DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3cull DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3CULL_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/device/CMakeLists.txt b/panda/src/device/CMakeLists.txt index 6de38bcc43..b31f99b31d 100644 --- a/panda/src/device/CMakeLists.txt +++ b/panda/src/device/CMakeLists.txt @@ -32,5 +32,7 @@ add_component_library(p3device SYMBOL BUILDING_PANDA_DEVICE target_link_libraries(p3device p3dgraph p3display) target_interrogate(p3device ALL) -install(TARGETS p3device DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3device DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3DEVICE_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/dgraph/CMakeLists.txt b/panda/src/dgraph/CMakeLists.txt index 60ec88cbe8..417848df2a 100644 --- a/panda/src/dgraph/CMakeLists.txt +++ b/panda/src/dgraph/CMakeLists.txt @@ -17,5 +17,7 @@ add_component_library(p3dgraph NOINIT SYMBOL BUILDING_PANDA_DGRAPH target_link_libraries(p3dgraph p3pgraph) target_interrogate(p3dgraph ALL) -install(TARGETS p3dgraph DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3dgraph DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3DGRAPH_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/display/CMakeLists.txt b/panda/src/display/CMakeLists.txt index 3f7fb00253..a8d6076f00 100644 --- a/panda/src/display/CMakeLists.txt +++ b/panda/src/display/CMakeLists.txt @@ -92,7 +92,9 @@ add_component_library(p3display SYMBOL BUILDING_PANDA_DISPLAY target_link_libraries(p3display p3cull p3pgraphnodes) target_interrogate(p3display ALL EXTENSIONS ${P3DISPLAY_IGATEEXT}) -install(TARGETS p3display DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3display DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3DISPLAY_HEADERS} DESTINATION include/panda3d) if(OSX_PLATFORM AND HAVE_P3D_PLUGIN) diff --git a/panda/src/downloader/CMakeLists.txt b/panda/src/downloader/CMakeLists.txt index 023acf2db5..6f03d4bcba 100644 --- a/panda/src/downloader/CMakeLists.txt +++ b/panda/src/downloader/CMakeLists.txt @@ -73,5 +73,7 @@ add_component_library(p3downloader SYMBOL BUILDING_PANDA_DOWNLOADER target_link_libraries(p3downloader p3express) target_interrogate(p3downloader ALL EXTENSIONS ${P3DOWNLOADER_IGATEEXT}) -install(TARGETS p3downloader DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3downloader DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3DOWNLOADER_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/dxml/CMakeLists.txt b/panda/src/dxml/CMakeLists.txt index 82db1ef516..2dda39451d 100644 --- a/panda/src/dxml/CMakeLists.txt +++ b/panda/src/dxml/CMakeLists.txt @@ -17,5 +17,7 @@ add_component_library(p3dxml SYMBOL BUILDING_PANDA_DXML target_link_libraries(p3dxml pandaexpress) target_interrogate(p3dxml ALL) -install(TARGETS p3dxml DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3dxml DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3DXML_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/egg/CMakeLists.txt b/panda/src/egg/CMakeLists.txt index 341938f391..21d00bade7 100644 --- a/panda/src/egg/CMakeLists.txt +++ b/panda/src/egg/CMakeLists.txt @@ -107,5 +107,7 @@ add_component_library(p3egg SYMBOL BUILDING_PANDA_EGG target_link_libraries(p3egg panda) target_interrogate(p3egg ${P3EGG_HEADERS} ${P3EGG_SOURCES} EXTENSIONS ${P3EGG_IGATEEXT}) -install(TARGETS p3egg DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3egg DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3EGG_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/egg2pg/CMakeLists.txt b/panda/src/egg2pg/CMakeLists.txt index e9ede6c215..5b444c043c 100644 --- a/panda/src/egg2pg/CMakeLists.txt +++ b/panda/src/egg2pg/CMakeLists.txt @@ -38,5 +38,7 @@ add_component_library(p3egg2pg SYMBOL BUILDING_PANDA_EGG2PG target_link_libraries(p3egg2pg panda p3egg) target_interrogate(p3egg2pg ALL) -install(TARGETS p3egg2pg DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3egg2pg DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3EGG2PG_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/event/CMakeLists.txt b/panda/src/event/CMakeLists.txt index e3c0c0ab1e..46556369d0 100644 --- a/panda/src/event/CMakeLists.txt +++ b/panda/src/event/CMakeLists.txt @@ -50,7 +50,9 @@ add_component_library(p3event NOINIT SYMBOL BUILDING_PANDA_EVENT target_link_libraries(p3event p3linmath p3pstatclient) target_interrogate(p3event ALL EXTENSIONS ${P3EVENT_IGATEEXT}) -install(TARGETS p3event DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3event DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3EVENT_HEADERS} DESTINATION include/panda3d) #begin test_bin_target diff --git a/panda/src/express/CMakeLists.txt b/panda/src/express/CMakeLists.txt index ff17d24592..899fe215e4 100644 --- a/panda/src/express/CMakeLists.txt +++ b/panda/src/express/CMakeLists.txt @@ -157,7 +157,9 @@ if(WIN32) target_link_libraries(p3express advapi32.lib ws2_32.lib) endif() -install(TARGETS p3express DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3express DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3EXPRESS_HEADERS} DESTINATION include/panda3d) #add_executable(p3expressTestTypes test_types.cxx) diff --git a/panda/src/ffmpeg/CMakeLists.txt b/panda/src/ffmpeg/CMakeLists.txt index 8f78a93ac5..09d7e38c3d 100644 --- a/panda/src/ffmpeg/CMakeLists.txt +++ b/panda/src/ffmpeg/CMakeLists.txt @@ -25,5 +25,5 @@ set_target_properties(p3ffmpeg PROPERTIES DEFINE_SYMBOL BUILDING_FFMPEG) target_link_libraries(p3ffmpeg panda) target_use_packages(p3ffmpeg FFMPEG SWSCALE SWRESAMPLE) -install(TARGETS p3ffmpeg DESTINATION lib) +install(TARGETS p3ffmpeg DESTINATION lib RUNTIME DESTINATION bin) install(FILES ${P3FFMPEG_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/framework/CMakeLists.txt b/panda/src/framework/CMakeLists.txt index ecf24a531c..12ca4a0077 100644 --- a/panda/src/framework/CMakeLists.txt +++ b/panda/src/framework/CMakeLists.txt @@ -51,5 +51,5 @@ add_library(p3framework ${P3FRAMEWORK_HEADERS} ${P3FRAMEWORK_SOURCES}) set_target_properties(p3framework PROPERTIES DEFINE_SYMBOL BUILDING_FRAMEWORK) target_link_libraries(p3framework ${P3FRAMEWORK_LINK_TARGETS}) -install(TARGETS p3framework DESTINATION lib) +install(TARGETS p3framework DESTINATION lib RUNTIME DESTINATION bin) install(FILES ${P3FRAMEWORK_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/glgsg/CMakeLists.txt b/panda/src/glgsg/CMakeLists.txt index ca961f5b65..0d030a7f0a 100644 --- a/panda/src/glgsg/CMakeLists.txt +++ b/panda/src/glgsg/CMakeLists.txt @@ -18,5 +18,7 @@ target_link_libraries(p3glgsg p3glstuff panda ${OPENGL_LIBRARIES}) target_use_packages(p3glgsg CG) -install(TARGETS p3glgsg DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3glgsg DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3GLGSG_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/glstuff/CMakeLists.txt b/panda/src/glstuff/CMakeLists.txt index 67af226c88..8118d6fc74 100644 --- a/panda/src/glstuff/CMakeLists.txt +++ b/panda/src/glstuff/CMakeLists.txt @@ -37,5 +37,7 @@ composite_sources(p3glstuff P3GLSTUFF_SOURCES) add_component_library(p3glstuff ${P3GLSTUFF_HEADERS} ${P3GLSTUFF_SOURCES}) target_link_libraries(p3glstuff panda) -install(TARGETS p3glstuff DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3glstuff DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3GLSTUFF_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/glxdisplay/CMakeLists.txt b/panda/src/glxdisplay/CMakeLists.txt index edb9544df7..19aab8a49f 100644 --- a/panda/src/glxdisplay/CMakeLists.txt +++ b/panda/src/glxdisplay/CMakeLists.txt @@ -28,4 +28,6 @@ add_component_library(p3glxdisplay SYMBOL BUILDING_PANDA_GLXDISPLAY ${P3GLXDISPLAY_HEADERS} ${P3GLXDISPLAY_SOURCES}) target_link_libraries(p3glxdisplay p3glgsg p3x11display) -install(TARGETS p3glxdisplay DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3glxdisplay DESTINATION lib) +endif() diff --git a/panda/src/gobj/CMakeLists.txt b/panda/src/gobj/CMakeLists.txt index 6da64d7ead..d3301f64de 100644 --- a/panda/src/gobj/CMakeLists.txt +++ b/panda/src/gobj/CMakeLists.txt @@ -174,7 +174,9 @@ target_link_libraries(p3gobj p3gsgbase p3pnmimage) target_use_packages(p3gobj ZLIB SQUISH CG) target_interrogate(p3gobj ALL EXTENSIONS ${P3GOBJ_IGATEEXT}) -install(TARGETS p3gobj DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3gobj DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3GOBJ_HEADERS} DESTINATION include/panda3d) #begin test_bin_target diff --git a/panda/src/grutil/CMakeLists.txt b/panda/src/grutil/CMakeLists.txt index 7dc1c7fb00..7a8be4135e 100644 --- a/panda/src/grutil/CMakeLists.txt +++ b/panda/src/grutil/CMakeLists.txt @@ -46,5 +46,7 @@ if(HAVE_AUDIO) endif() target_interrogate(p3grutil ALL) -install(TARGETS p3grutil DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3grutil DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3GRUTIL_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/gsgbase/CMakeLists.txt b/panda/src/gsgbase/CMakeLists.txt index 27ef4199f1..81502f4bab 100644 --- a/panda/src/gsgbase/CMakeLists.txt +++ b/panda/src/gsgbase/CMakeLists.txt @@ -16,7 +16,9 @@ add_component_library(p3gsgbase NOINIT SYMBOL BUILDING_PANDA_GSGBASE target_link_libraries(p3gsgbase p3putil p3linmath) target_interrogate(p3gsgbase ALL) -install(TARGETS p3gsgbase DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3gsgbase DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3GSGBASE_HEADERS} DESTINATION include/panda3d) #begin test_bin_target diff --git a/panda/src/linmath/CMakeLists.txt b/panda/src/linmath/CMakeLists.txt index 5157a0d38b..6fd6b342b9 100644 --- a/panda/src/linmath/CMakeLists.txt +++ b/panda/src/linmath/CMakeLists.txt @@ -50,7 +50,9 @@ target_link_libraries(p3linmath p3pandabase pandaexpress) target_use_packages(p3linmath EIGEN) target_interrogate(p3linmath ALL) -install(TARGETS p3linmath DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3linmath DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3LINMATH_HEADERS} DESTINATION include/panda3d) #begin test_bin_target diff --git a/panda/src/mathutil/CMakeLists.txt b/panda/src/mathutil/CMakeLists.txt index 2cf5568af3..0febd3958d 100644 --- a/panda/src/mathutil/CMakeLists.txt +++ b/panda/src/mathutil/CMakeLists.txt @@ -67,7 +67,9 @@ target_link_libraries(p3mathutil p3event) target_use_packages(p3mathutil FFTW) target_interrogate(p3mathutil ALL) -install(TARGETS p3mathutil DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3mathutil DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3MATHUTIL_HEADERS} DESTINATION include/panda3d) #begin test_bin_target diff --git a/panda/src/movies/CMakeLists.txt b/panda/src/movies/CMakeLists.txt index 49668ffc48..0f03bbadc5 100644 --- a/panda/src/movies/CMakeLists.txt +++ b/panda/src/movies/CMakeLists.txt @@ -47,5 +47,7 @@ add_component_library(p3movies SYMBOL BUILDING_PANDA_MOVIES target_link_libraries(p3movies p3pstatclient p3gobj p3pandabase pandaexpress) target_interrogate(p3movies ALL) -install(TARGETS p3movies DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3movies DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3MOVIES_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/nativenet/CMakeLists.txt b/panda/src/nativenet/CMakeLists.txt index 7cdde96ce8..7598a61942 100644 --- a/panda/src/nativenet/CMakeLists.txt +++ b/panda/src/nativenet/CMakeLists.txt @@ -33,5 +33,7 @@ add_component_library(p3nativenet SYMBOL BUILDING_PANDA_NATIVENET target_link_libraries(p3nativenet p3pandabase pandaexpress) target_interrogate(p3nativenet ALL) -install(TARGETS p3nativenet DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3nativenet DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3NATIVENET_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/net/CMakeLists.txt b/panda/src/net/CMakeLists.txt index ba265cc86b..58c7e80c6d 100644 --- a/panda/src/net/CMakeLists.txt +++ b/panda/src/net/CMakeLists.txt @@ -38,5 +38,7 @@ if(WIN32) target_link_libraries(p3net Iphlpapi.lib) endif() -install(TARGETS p3net DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3net DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3NET_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/ode/CMakeLists.txt b/panda/src/ode/CMakeLists.txt index 3206b722eb..a71c83a22a 100644 --- a/panda/src/ode/CMakeLists.txt +++ b/panda/src/ode/CMakeLists.txt @@ -91,5 +91,5 @@ target_link_libraries(p3ode panda) target_use_packages(p3ode ODE) target_interrogate(p3ode ${P3ODE_IGATE_SOURCES} EXTENSIONS ${P3ODE_IGATEEXT}) -install(TARGETS p3ode DESTINATION lib) +install(TARGETS p3ode DESTINATION lib RUNTIME DESTINATION bin) install(FILES ${P3ODE_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/parametrics/CMakeLists.txt b/panda/src/parametrics/CMakeLists.txt index 08f617bb1e..bb61513e3f 100644 --- a/panda/src/parametrics/CMakeLists.txt +++ b/panda/src/parametrics/CMakeLists.txt @@ -39,7 +39,9 @@ add_component_library(p3parametrics NOINIT SYMBOL BUILDING_PANDA_PARAMETRICS target_link_libraries(p3parametrics p3pgraph) target_interrogate(p3parametrics ALL) -install(TARGETS p3parametrics DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3parametrics DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3PARAMETRICS_HEADERS} DESTINATION include/panda3d) #begin test_bin_target diff --git a/panda/src/particlesystem/CMakeLists.txt b/panda/src/particlesystem/CMakeLists.txt index 71102bb31d..d6b74b057a 100644 --- a/panda/src/particlesystem/CMakeLists.txt +++ b/panda/src/particlesystem/CMakeLists.txt @@ -43,5 +43,7 @@ add_component_library(p3particlesystem SYMBOL BUILDING_PANDA_PARTICLESYSTEM target_link_libraries(p3particlesystem p3physics panda) target_interrogate(p3particlesystem ALL) -install(TARGETS p3particlesystem DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3particlesystem DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3PARTICLESYSTEM_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/pgraph/CMakeLists.txt b/panda/src/pgraph/CMakeLists.txt index 7c136f7a38..8fed7d0f41 100644 --- a/panda/src/pgraph/CMakeLists.txt +++ b/panda/src/pgraph/CMakeLists.txt @@ -223,7 +223,9 @@ add_component_library(p3pgraph SYMBOL BUILDING_PANDA_PGRAPH target_link_libraries(p3pgraph p3gobj p3event p3gsgbase p3putil p3linmath pandaexpress) target_interrogate(p3pgraph ALL EXTENSIONS ${P3PGRAPH_IGATEEXT}) -install(TARGETS p3pgraph DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3pgraph DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3PGRAPH_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/pgraphnodes/CMakeLists.txt b/panda/src/pgraphnodes/CMakeLists.txt index 749a835051..663e88d5f2 100644 --- a/panda/src/pgraphnodes/CMakeLists.txt +++ b/panda/src/pgraphnodes/CMakeLists.txt @@ -50,5 +50,7 @@ add_component_library(p3pgraphnodes SYMBOL BUILDING_PANDA_PGRAPHNODES target_link_libraries(p3pgraphnodes p3pgraph) target_interrogate(p3pgraphnodes ALL) -install(TARGETS p3pgraphnodes DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3pgraphnodes DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3PGRAPHNODES_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/pgui/CMakeLists.txt b/panda/src/pgui/CMakeLists.txt index 16ced60a74..57ebb702b6 100644 --- a/panda/src/pgui/CMakeLists.txt +++ b/panda/src/pgui/CMakeLists.txt @@ -45,7 +45,9 @@ add_component_library(p3pgui SYMBOL BUILDING_PANDA_PGUI target_link_libraries(p3pgui p3tform) target_interrogate(p3pgui ALL) -install(TARGETS p3pgui DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3pgui DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3PGUI_HEADERS} DESTINATION include/panda3d) #begin test_bin_target diff --git a/panda/src/physics/CMakeLists.txt b/panda/src/physics/CMakeLists.txt index 3278cd08dd..7d17f65cbe 100644 --- a/panda/src/physics/CMakeLists.txt +++ b/panda/src/physics/CMakeLists.txt @@ -41,5 +41,7 @@ add_component_library(p3physics SYMBOL BUILDING_PANDA_PHYSICS target_link_libraries(p3physics panda) target_interrogate(p3physics ALL) -install(TARGETS p3physics DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3physics DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3PHYSICS_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/pipeline/CMakeLists.txt b/panda/src/pipeline/CMakeLists.txt index 73d7f96ce4..2d1a2be3d4 100644 --- a/panda/src/pipeline/CMakeLists.txt +++ b/panda/src/pipeline/CMakeLists.txt @@ -133,7 +133,9 @@ add_component_library(p3pipeline SYMBOL BUILDING_PANDA_PIPELINE target_link_libraries(p3pipeline pandaexpress) target_interrogate(p3pipeline ALL EXTENSIONS ${P3PIPELINE_IGATEEXT}) -install(TARGETS p3pipeline DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3pipeline DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3PIPELINE_HEADERS} DESTINATION include/panda3d) #begin test_bin_target diff --git a/panda/src/pnmimage/CMakeLists.txt b/panda/src/pnmimage/CMakeLists.txt index c78cb1dfe8..807cf1f9f9 100644 --- a/panda/src/pnmimage/CMakeLists.txt +++ b/panda/src/pnmimage/CMakeLists.txt @@ -40,5 +40,7 @@ add_component_library(p3pnmimage SYMBOL BUILDING_PANDA_PNMIMAGE target_link_libraries(p3pnmimage p3mathutil) target_interrogate(p3pnmimage ALL EXTENSIONS ${P3PNMIMAGE_IGATEEXT}) -install(TARGETS p3pnmimage DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3pnmimage DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3PNMIMAGE_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/pnmimagetypes/CMakeLists.txt b/panda/src/pnmimagetypes/CMakeLists.txt index c9236befaa..fc2e20efed 100644 --- a/panda/src/pnmimagetypes/CMakeLists.txt +++ b/panda/src/pnmimagetypes/CMakeLists.txt @@ -36,4 +36,6 @@ add_component_library(p3pnmimagetypes SYMBOL BUILDING_PANDA_PNMIMAGETYPES target_link_libraries(p3pnmimagetypes p3pnmimage) target_use_packages(p3pnmimagetypes JPEG TIFF PNG) -install(TARGETS p3pnmimagetypes DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3pnmimagetypes DESTINATION lib RUNTIME DESTINATION bin) +endif() diff --git a/panda/src/pnmtext/CMakeLists.txt b/panda/src/pnmtext/CMakeLists.txt index 8d71405a12..6b42b9feef 100644 --- a/panda/src/pnmtext/CMakeLists.txt +++ b/panda/src/pnmtext/CMakeLists.txt @@ -24,5 +24,7 @@ target_link_libraries(p3pnmtext p3parametrics p3pnmimage) target_use_packages(p3pnmtext FREETYPE) target_interrogate(p3pnmtext ALL) -install(TARGETS p3pnmtext DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3pnmtext DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3PNMTEXT_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/pstatclient/CMakeLists.txt b/panda/src/pstatclient/CMakeLists.txt index 8aa80f0566..93395116ac 100644 --- a/panda/src/pstatclient/CMakeLists.txt +++ b/panda/src/pstatclient/CMakeLists.txt @@ -26,6 +26,8 @@ add_component_library(p3pstatclient SYMBOL BUILDING_PANDA_PSTATCLIENT target_link_libraries(p3pstatclient p3net p3putil pandaexpress) target_interrogate(p3pstatclient ALL) -install(TARGETS p3pstatclient DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3pstatclient DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3PSTATCLIENT_HEADERS} DESTINATION include/panda3d) install(FILES config_pstats.h DESTINATION include/panda3d) diff --git a/panda/src/putil/CMakeLists.txt b/panda/src/putil/CMakeLists.txt index 9da712f192..2dc2830b13 100644 --- a/panda/src/putil/CMakeLists.txt +++ b/panda/src/putil/CMakeLists.txt @@ -129,7 +129,9 @@ add_component_library(p3putil SYMBOL BUILDING_PANDA_PUTIL target_link_libraries(p3putil p3linmath p3pipeline) target_interrogate(p3putil ALL EXTENSIONS ${P3PUTIL_IGATEEXT}) -install(TARGETS p3putil DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3putil DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3PUTIL_HEADERS} DESTINATION include/panda3d) install(FILES config_util.h DESTINATION include/panda3d) diff --git a/panda/src/recorder/CMakeLists.txt b/panda/src/recorder/CMakeLists.txt index fe479652ca..6ef60c5b8d 100644 --- a/panda/src/recorder/CMakeLists.txt +++ b/panda/src/recorder/CMakeLists.txt @@ -22,5 +22,7 @@ add_component_library(p3recorder NOINIT SYMBOL BUILDING_PANDA_RECORDER target_link_libraries(p3recorder p3dgraph pandaexpress) target_interrogate(p3recorder ALL) -install(TARGETS p3recorder DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3recorder DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3RECORDER_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/text/CMakeLists.txt b/panda/src/text/CMakeLists.txt index 42378c1967..4d9f9fe220 100644 --- a/panda/src/text/CMakeLists.txt +++ b/panda/src/text/CMakeLists.txt @@ -42,5 +42,7 @@ if(HAVE_FREETYPE) endif() target_interrogate(p3text ALL) -install(TARGETS p3text DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3text DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3TEXT_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/tform/CMakeLists.txt b/panda/src/tform/CMakeLists.txt index 53510a0060..ec1eaa5da5 100644 --- a/panda/src/tform/CMakeLists.txt +++ b/panda/src/tform/CMakeLists.txt @@ -32,5 +32,7 @@ add_component_library(p3tform NOINIT SYMBOL BUILDING_PANDA_TFORM target_link_libraries(p3tform p3device p3grutil) target_interrogate(p3tform ALL) -install(TARGETS p3tform DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3tform DESTINATION lib RUNTIME DESTINATION bin) +endif() install(FILES ${P3TFORM_HEADERS} DESTINATION include/panda3d) diff --git a/panda/src/x11display/CMakeLists.txt b/panda/src/x11display/CMakeLists.txt index 2bfbb1ba6b..b4138fb0f6 100644 --- a/panda/src/x11display/CMakeLists.txt +++ b/panda/src/x11display/CMakeLists.txt @@ -16,4 +16,6 @@ add_component_library(p3x11display SYMBOL BUILDING_PANDAX11 ${P3X11DISPLAY_HEADERS} ${P3X11DISPLAY_SOURCES}) target_link_libraries(p3x11display panda ${X11_LIBRARIES}) -install(TARGETS p3x11display DESTINATION lib) +if(NOT BUILD_METALIBS) + install(TARGETS p3x11display DESTINATION lib) +endif()