1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- set(MODULE_NAME "wmpplayer")
- set(MODULE_PREFIX "LIB_WMPPLYAER_FUNC")
- add_definitions(-D_AFXDLL)
- #Enables the use of the Microsoft Foundation Classes (MFC).
- #It should be set to 1 for the static MFC library, and 2 for the shared MFC library
- set(CMAKE_MFC_FLAG 2)
- #add_definitions(-DUNICODE -D_UNICODE)
- message(STATUS "MFC_DIR = ${MFC_FOUND}")
- message(STATUS "MFC_DIR = ${MFC_DIR}")
- message(STATUS "MFC_DIR = ${MFC_INCLUDE}")
- message(STATUS "MFC_DIR = ${MFC_INCLUDE_DIR}")
- message(STATUS "MFC_DIR = ${MFC_INCLUDE_LIBRARY}")
- message(STATUS "MFC_DIR = ${MFC_INCLUDE_LIBRARIES}")
- if(MSVC)
- set(STDAFXCPP ${RVC_FRAMEWORK_INCLUDE_DIR}/stdafx.cpp)
- else()
- set(STDAFXCPP )
- endif(MSVC)
- set(${MODULE_PREFIX}_SRCS
- stdafx.h
- ClibwmpplayerApp.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPCdromCollection.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPClosedCaption.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPClosedCaption2.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPControls.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPControls2.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPControls3.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPDVD.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPError.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPErrorItem.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPErrorItem2.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPMedia.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPMedia2.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPMedia3.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPMediaCollection.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPMediaCollection2.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPMetadataPicture.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPMetadataText.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPPlayer.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPPlayer2.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPPlayer3.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPPlayer4.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPPlaylist.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPPlaylistCollection.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPSettings.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPSettings2.cpp
- ${ThirdPartyHeadRoot}/wmpplayer/src/CWMPStringCollection2.cpp
- libwmpplayer.cpp
- CPlayerDlg.cpp
- libwmpplayer.rc
- ${STDAFXCPP}
- )
- add_library(${MODULE_NAME} SHARED ${${MODULE_PREFIX}_SRCS})
- message(STATUS "VCInstallDir ${VCInstallDir}")
- target_include_directories(${MODULE_NAME} PRIVATE
- ${ThirdPartyHeadRoot}/wmpplayer/include
- ${CMAKE_CURRENT_SOURCE_DIR}
- )
- target_compile_definitions(${MODULE_NAME} PUBLIC "LIBWMPPLYAER_EXPORTS")
- if(MSVC)
- install(TARGETS ${MODULE_NAME}
- RUNTIME DESTINATION "${RVC_RUNTIME_PATH}" COMPONENT libraries
- ARCHIVE DESTINATION "${RVC_LIBRARY_PATH}" COMPONENT develops EXCLUDE_FROM_ALL
- LIBRARY DESTINATION "${RVC_LIBRARY_PATH}" COMPONENT libraries
- )
- else()
- install(TARGETS ${MODULE_NAME}
- RUNTIME DESTINATION "${RVC_RUNTIME_PATH}"
- ARCHIVE DESTINATION "${RVC_LIBRARY_PATH}"
- LIBRARY DESTINATION "${RVC_RUNTIME_PATH}"
- COMPONENT libraries)
- endif(MSVC)
- set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "other/")
|