Include various libraries for Visual Studio environment

pull/104/head^2
Phillip Andrews 8 years ago
parent 2efd38b1ab
commit 1861302dbd

@ -42,3 +42,7 @@ if (BUILD_WITH_CODE_COVERAGE)
add_definitions (--coverage)
target_link_libraries(openmw-essimporter gcov)
endif()
if (MSVC)
target_link_libraries(openmw-essimporter imm32.lib winmm.lib version.lib)
endif(MSVC)

@ -92,6 +92,10 @@ target_link_libraries(openmw-launcher
components
)
if(MSVC)
target_link_libraries(openmw-launcher imm32.lib winmm.lib version.lib)
endif(MSVC)
if (DESIRED_QT_VERSION MATCHES 4)
target_link_libraries(openmw-launcher ${QT_QTGUI_LIBRARY} ${QT_QTCORE_LIBRARY})
if(WIN32)

@ -24,6 +24,10 @@ if (WIN32)
${Boost_LOCALE_LIBRARY})
endif()
if(MSVC)
target_link_libraries(openmw-iniimporter imm32.lib winmm.lib version.lib)
endif(MSVC)
if (MINGW)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -municode")
endif()

@ -225,6 +225,15 @@ if (WIN32)
target_link_libraries(openmw-cs ${Boost_LOCALE_LIBRARY})
endif()
if (MSVC)
# Debug version needs increased number of sections beyond 2^16
if (CMAKE_CL_64)
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj")
endif (CMAKE_CL_64)
add_definitions("-D_USE_MATH_DEFINES")
target_link_libraries(openmw-cs imm32.lib winmm.lib version.lib)
endif (MSVC)
if(APPLE)
INSTALL(TARGETS openmw-cs BUNDLE DESTINATION OpenMW COMPONENT BUNDLE)

@ -201,4 +201,6 @@ if (MSVC)
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj")
endif (CMAKE_CL_64)
add_definitions("-D_USE_MATH_DEFINES")
target_link_libraries(openmw imm32.lib winmm.lib version.lib)
endif (MSVC)

Loading…
Cancel
Save