Skip to content

Commit 8527ca7

Browse files
committed
Fix install targets
1 parent af5bd50 commit 8527ca7

File tree

1 file changed

+31
-21
lines changed

1 file changed

+31
-21
lines changed

src/CMakeLists.txt

Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -42,36 +42,46 @@ install(
4242
xrParticles
4343
xrPhysics
4444
xrRender_GL
45-
xrRender_R4
45+
$<$<PLATFORM_ID:Windows>:xrRender_R4>
4646
xrScriptEngine
4747
xrSound
4848
xrUICore
4949
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT OpenXRay
5050
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT OpenXRay
5151
)
5252

53-
install(FILES
53+
install(
54+
FILES
5455
$<TARGET_PDB_FILE:xr_3da>
55-
$<TARGET_PDB_FILE:xrAICore>
56-
$<TARGET_PDB_FILE:xrAPI>
57-
$<TARGET_PDB_FILE:xrCDB>
58-
$<TARGET_PDB_FILE:xrCore>
59-
$<TARGET_PDB_FILE:xrEngine>
60-
$<TARGET_PDB_FILE:xrGame>
61-
$<TARGET_PDB_FILE:xrGameSpy>
62-
$<TARGET_PDB_FILE:xrLuabind>
63-
$<TARGET_PDB_FILE:xrMaterialSystem>
64-
$<TARGET_PDB_FILE:xrNetServer>
65-
$<TARGET_PDB_FILE:xrODE>
66-
$<TARGET_PDB_FILE:xrOPCODE>
67-
$<TARGET_PDB_FILE:xrParticles>
68-
$<TARGET_PDB_FILE:xrPhysics>
69-
$<TARGET_PDB_FILE:xrRender_GL>
70-
$<TARGET_PDB_FILE:xrRender_R4>
71-
$<TARGET_PDB_FILE:xrScriptEngine>
72-
$<TARGET_PDB_FILE:xrSound>
73-
$<TARGET_PDB_FILE:xrUICore>
7456
DESTINATION "${CMAKE_INSTALL_BINDIR}"
7557
COMPONENT Debug
7658
OPTIONAL
7759
)
60+
61+
if (BUILD_SHARED_LIBS)
62+
install(
63+
FILES
64+
$<TARGET_PDB_FILE:xrAICore>
65+
$<TARGET_PDB_FILE:xrAPI>
66+
$<TARGET_PDB_FILE:xrCDB>
67+
$<TARGET_PDB_FILE:xrCore>
68+
$<TARGET_PDB_FILE:xrEngine>
69+
$<TARGET_PDB_FILE:xrGame>
70+
$<TARGET_PDB_FILE:xrGameSpy>
71+
$<TARGET_PDB_FILE:xrLuabind>
72+
$<TARGET_PDB_FILE:xrMaterialSystem>
73+
$<TARGET_PDB_FILE:xrNetServer>
74+
$<TARGET_PDB_FILE:xrODE>
75+
$<TARGET_PDB_FILE:xrOPCODE>
76+
$<TARGET_PDB_FILE:xrParticles>
77+
$<TARGET_PDB_FILE:xrPhysics>
78+
$<TARGET_PDB_FILE:xrRender_GL>
79+
$<$<PLATFORM_ID:Windows>:$<TARGET_PDB_FILE:xrRender_R4>>
80+
$<TARGET_PDB_FILE:xrScriptEngine>
81+
$<TARGET_PDB_FILE:xrSound>
82+
$<TARGET_PDB_FILE:xrUICore>
83+
DESTINATION "${CMAKE_INSTALL_BINDIR}"
84+
COMPONENT Debug
85+
OPTIONAL
86+
)
87+
endif()

0 commit comments

Comments
 (0)