mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 01:47:45 +01:00
cmake: update vgui path.
This commit is contained in:
parent
eeeff1aa34
commit
b0b68d5755
@ -156,8 +156,8 @@ include_directories (. hl/ ../dlls ../dlls/wpn_shared ../common ../engine ../pm_
|
||||
|
||||
if (USE_VGUI)
|
||||
SET(CMAKE_SKIP_RPATH TRUE)
|
||||
link_directories(${CMAKE_SOURCE_DIR}/vgui-dev/lib)
|
||||
include_directories(../vgui-dev/include)
|
||||
link_directories(${CMAKE_SOURCE_DIR}/vgui_support/vgui-dev/lib)
|
||||
include_directories(../vgui_support/vgui-dev/include)
|
||||
else()
|
||||
include_directories(../utils/false_vgui/include)
|
||||
endif()
|
||||
@ -178,11 +178,11 @@ endif()
|
||||
if (USE_VGUI)
|
||||
if (WIN32)
|
||||
add_library(vgui SHARED IMPORTED)
|
||||
set_property(TARGET vgui PROPERTY IMPORTED_LOCATION "${CMAKE_SOURCE_DIR}/vgui-dev/lib/win32_vc6/vgui.dll")
|
||||
set_property(TARGET vgui PROPERTY IMPORTED_IMPLIB "${CMAKE_SOURCE_DIR}/vgui-dev/lib/win32_vc6/vgui.lib")
|
||||
set_property(TARGET vgui PROPERTY IMPORTED_LOCATION "${CMAKE_SOURCE_DIR}/vgui_support/vgui-dev/lib/win32_vc6/vgui.dll")
|
||||
set_property(TARGET vgui PROPERTY IMPORTED_IMPLIB "${CMAKE_SOURCE_DIR}/vgui_support/vgui-dev/lib/win32_vc6/vgui.lib")
|
||||
target_link_libraries(${CLDLL_LIBRARY} vgui)
|
||||
elseif(APPLE)
|
||||
target_link_libraries(${CLDLL_LIBRARY} "-Wl,--no-undefined -L${CMAKE_SOURCE_DIR}/vgui-dev/lib vgui.dylib")
|
||||
target_link_libraries(${CLDLL_LIBRARY} "-Wl,--no-undefined -L${CMAKE_SOURCE_DIR}/vgui_support/vgui-dev/lib vgui.dylib")
|
||||
else()
|
||||
target_link_libraries(${CLDLL_LIBRARY} :vgui.so)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user