Add UNIX support for WXWINDOWS
This commit is contained in:
parent
a898cfb17a
commit
7cdee27a01
|
@ -7,6 +7,7 @@
|
||||||
# WXWINDOWS_SHARED_LIBRARY = full path to the wxWindows shared import library
|
# WXWINDOWS_SHARED_LIBRARY = full path to the wxWindows shared import library
|
||||||
# WXWINDOWS_INCLUDE_PATH = path to wx.h
|
# WXWINDOWS_INCLUDE_PATH = path to wx.h
|
||||||
|
|
||||||
|
IF(WINDOWS)
|
||||||
SET (WXWINDOWS_POSSIBLE_LIB_PATHS
|
SET (WXWINDOWS_POSSIBLE_LIB_PATHS
|
||||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\wxWindows_is1;Inno Setup: App Path]/lib"
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\wxWindows_is1;Inno Setup: App Path]/lib"
|
||||||
$ENV{WXWIN}/lib
|
$ENV{WXWIN}/lib
|
||||||
|
@ -31,9 +32,17 @@ FIND_PATH(WXWINDOWS_INCLUDE_PATH
|
||||||
wx.h
|
wx.h
|
||||||
${WXWINDOWS_POSSIBLE_INCLUDE_PATHS}
|
${WXWINDOWS_POSSIBLE_INCLUDE_PATHS}
|
||||||
)
|
)
|
||||||
|
ELSE(WINDOWS)
|
||||||
|
FIND_PROGRAM(CMAKE_WX_CONFIG wx-config)
|
||||||
|
EXEC_PROGRAM(wx-config ARGS --cflags OUTPUT_VARIABLE WXWINDOWS_COMPILE_FLAGS)
|
||||||
|
EXEC_PROGRAM(wx-config ARGS --libs OUTPUT_VARIABLE WXWINDOWS_LINK_FLAGS)
|
||||||
|
SET(CMAKE_WX_CXX_FLAGS "`${CMAKE_WX_CONFIG} --cflags`")
|
||||||
|
SET(CMAKE_WX_LIBRARIES "`${CMAKE_WX_CONFIG} --libs`")
|
||||||
|
ENDIF(WINDOWS)
|
||||||
|
|
||||||
MARK_AS_ADVANCED(
|
MARK_AS_ADVANCED(
|
||||||
WXWINDOWS_STATIC_LIBRARY
|
WXWINDOWS_STATIC_LIBRARY
|
||||||
WXWINDOWS_SHARED_LIBRARY
|
WXWINDOWS_SHARED_LIBRARY
|
||||||
WXWINDOWS_INCLUDE_PATH
|
WXWINDOWS_INCLUDE_PATH
|
||||||
|
WXWINDOWS_SETUP_INCLUDE_PATH
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue