Added support for official wine-devel and wine-staging packages. (#3278)
* Added support for wine-devel packages. * Added support for wine-staging packages. * Staging extra flags. * Dynamic Wine branch detection (stable, devel, staging). * Using STRING() to correct WINE_INCLUDE_DIR and WINE_LIBRARY. * Don't override CMAKE_PREFIX_PATH. * REPLACE outputs new variables. * Renamed variables.
This commit is contained in:
committed by
Javier Serrano Polo
parent
fc272d7aee
commit
0b43741f7e
@@ -7,12 +7,14 @@
|
||||
# WINE_DEFINITIONS - Compiler switches required for using wine
|
||||
#
|
||||
|
||||
LIST(APPEND CMAKE_PREFIX_PATH /opt/wine-devel /opt/wine-staging)
|
||||
|
||||
FIND_PATH(WINE_INCLUDE_DIR windows/windows.h PATH_SUFFIXES wine)
|
||||
FIND_LIBRARY(WINE_LIBRARY NAMES wine PATH_SUFFIXES wine i386-linux-gnu/wine)
|
||||
FIND_PROGRAM(WINE_CXX NAMES wineg++ winegcc winegcc64 winegcc32)
|
||||
|
||||
set(WINE_INCLUDE_DIRS ${WINE_INCLUDE_DIR} )
|
||||
set(WINE_LIBRARIES ${WINE_LIBRARY} )
|
||||
SET(WINE_INCLUDE_DIRS ${WINE_INCLUDE_DIR} )
|
||||
SET(WINE_LIBRARIES ${WINE_LIBRARY} )
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(Wine DEFAULT_MSG WINE_LIBRARIES WINE_INCLUDE_DIRS)
|
||||
|
||||
Reference in New Issue
Block a user