PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/media_plugins/winmmshim/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 40 lines | 27 code | 8 blank | 5 comment | 1 complexity | 5c2f7bb4cb57b8210b4a13d9c21d8889 MD5 | raw file
 1# -*- cmake -*-
 2
 3project(winmm_shim)
 4
 5### winmm_shim
 6# *HACK - override msvcrt implementation (intialized on 00-Common) to be
 7# statically linked for winmm.dll this relies on vc taking the last flag on
 8# the command line
 9set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
10set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /MT")
11set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
12
13set(winmm_shim_SOURCE_FILES
14    forwarding_api.cpp
15    winmm_shim.cpp
16    )
17
18set(winmm_shim_HEADER_FILES
19    forwarding_api.h
20    winmm.def
21    )
22
23list(APPEND winmm_shim_SOURCE_FILES ${winmm_shim_HEADER_FILES})
24
25set_source_files_properties(${media_plugin_webkit_HEADER_FILES}
26                            PROPERTIES HEADER_FILE_ONLY TRUE)
27
28add_library(winmm_shim
29    SHARED
30    ${winmm_shim_SOURCE_FILES}
31)
32
33if (WINDOWS)
34  set_target_properties(
35    winmm_shim
36    PROPERTIES
37    LINK_FLAGS "/MANIFEST:NO"
38    OUTPUT_NAME "winmm"
39    )
40endif (WINDOWS)