mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 16:30:39 +02:00
fix link issues for many targets
This commit is contained in:
parent
a290017746
commit
9441f9ffb7
4 changed files with 13 additions and 3 deletions
|
@ -41,3 +41,7 @@ include_directories(${ROOT_DIR}/externals/civetweb/include)
|
||||||
if (UNIX)
|
if (UNIX)
|
||||||
target_link_libraries(${TARGET_NAME} ${CMAKE_DL_LIBS})
|
target_link_libraries(${TARGET_NAME} ${CMAKE_DL_LIBS})
|
||||||
endif (UNIX)
|
endif (UNIX)
|
||||||
|
|
||||||
|
IF (WIN32)
|
||||||
|
target_link_libraries(${TARGET_NAME} Winmm)
|
||||||
|
ENDIF(WIN32)
|
||||||
|
|
|
@ -38,3 +38,7 @@ link_hifi_library(shared ${TARGET_NAME} ${ROOT_DIR})
|
||||||
if (UNIX AND NOT APPLE)
|
if (UNIX AND NOT APPLE)
|
||||||
target_link_libraries(${TARGET_NAME} ${CMAKE_DL_LIBS})
|
target_link_libraries(${TARGET_NAME} ${CMAKE_DL_LIBS})
|
||||||
endif (UNIX AND NOT APPLE)
|
endif (UNIX AND NOT APPLE)
|
||||||
|
|
||||||
|
IF (WIN32)
|
||||||
|
target_link_libraries(${TARGET_NAME} Winmm)
|
||||||
|
ENDIF(WIN32)
|
||||||
|
|
|
@ -26,4 +26,6 @@ link_hifi_library(octree ${TARGET_NAME} ${ROOT_DIR})
|
||||||
# link in the hifi voxels library
|
# link in the hifi voxels library
|
||||||
link_hifi_library(voxels ${TARGET_NAME} ${ROOT_DIR})
|
link_hifi_library(voxels ${TARGET_NAME} ${ROOT_DIR})
|
||||||
|
|
||||||
|
IF (WIN32)
|
||||||
|
target_link_libraries(${TARGET_NAME} Winmm Ws2_32)
|
||||||
|
ENDIF(WIN32)
|
||||||
|
|
Loading…
Reference in a new issue