|
|
|
@ -215,7 +215,7 @@ if (ANDROID)
|
|
|
|
|
${OSG_PLUGINS} -Wl,--no-whole-archive
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(openmw
|
|
|
|
|
target_link_libraries(openmw
|
|
|
|
|
EGL
|
|
|
|
|
android
|
|
|
|
|
log
|
|
|
|
@ -229,18 +229,18 @@ if (ANDROID)
|
|
|
|
|
endif (ANDROID)
|
|
|
|
|
|
|
|
|
|
if (USE_SYSTEM_TINYXML)
|
|
|
|
|
target_link_libraries(openmw ${TinyXML_LIBRARIES})
|
|
|
|
|
target_link_libraries(openmw ${TinyXML_LIBRARIES})
|
|
|
|
|
target_link_libraries(openmw_vr ${TinyXML_LIBRARIES})
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if (NOT UNIX)
|
|
|
|
|
target_link_libraries(openmw ${SDL2MAIN_LIBRARY})
|
|
|
|
|
target_link_libraries(openmw ${SDL2MAIN_LIBRARY})
|
|
|
|
|
target_link_libraries(openmw_vr ${SDL2MAIN_LIBRARY})
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
# Fix for not visible pthreads functions for linker with glibc 2.15
|
|
|
|
|
if (UNIX AND NOT APPLE)
|
|
|
|
|
target_link_libraries(openmw ${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
|
target_link_libraries(openmw ${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
|
target_link_libraries(openmw_vr ${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
@ -266,20 +266,20 @@ if(APPLE)
|
|
|
|
|
|
|
|
|
|
find_library(COCOA_FRAMEWORK Cocoa)
|
|
|
|
|
find_library(IOKIT_FRAMEWORK IOKit)
|
|
|
|
|
target_link_libraries(openmw ${COCOA_FRAMEWORK} ${IOKIT_FRAMEWORK})
|
|
|
|
|
target_link_libraries(openmw ${COCOA_FRAMEWORK} ${IOKIT_FRAMEWORK})
|
|
|
|
|
target_link_libraries(openmw_vr ${COCOA_FRAMEWORK} ${IOKIT_FRAMEWORK})
|
|
|
|
|
|
|
|
|
|
if (FFmpeg_FOUND)
|
|
|
|
|
find_library(COREVIDEO_FRAMEWORK CoreVideo)
|
|
|
|
|
find_library(VDA_FRAMEWORK VideoDecodeAcceleration)
|
|
|
|
|
target_link_libraries(openmw z ${COREVIDEO_FRAMEWORK} ${VDA_FRAMEWORK})
|
|
|
|
|
target_link_libraries(openmw z ${COREVIDEO_FRAMEWORK} ${VDA_FRAMEWORK})
|
|
|
|
|
target_link_libraries(openmw_vr z ${COREVIDEO_FRAMEWORK} ${VDA_FRAMEWORK})
|
|
|
|
|
endif()
|
|
|
|
|
endif(APPLE)
|
|
|
|
|
|
|
|
|
|
if (BUILD_WITH_CODE_COVERAGE)
|
|
|
|
|
add_definitions (--coverage)
|
|
|
|
|
target_link_libraries(openmw gcov)
|
|
|
|
|
target_link_libraries(openmw gcov)
|
|
|
|
|
target_link_libraries(openmw_vr gcov)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
@ -291,6 +291,6 @@ if (MSVC)
|
|
|
|
|
endif (MSVC)
|
|
|
|
|
|
|
|
|
|
if (WIN32)
|
|
|
|
|
INSTALL(TARGETS openmw RUNTIME DESTINATION ".")
|
|
|
|
|
INSTALL(TARGETS openmw RUNTIME DESTINATION ".")
|
|
|
|
|
INSTALL(TARGETS openmw_vr RUNTIME DESTINATION ".")
|
|
|
|
|
endif (WIN32)
|
|
|
|
|