mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
3b6f7644fd
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7217 8ced0084-cf51-0410-be5f-012b33b47a6e
92 lines
2.2 KiB
CMake
92 lines
2.2 KiB
CMake
set(LIBS core
|
|
lzo2
|
|
discio
|
|
bdisasm
|
|
inputcommon
|
|
common
|
|
audiocommon
|
|
z
|
|
sfml-network
|
|
SDL
|
|
GL
|
|
${XRANDR_LIBRARIES}
|
|
${X11_LIBRARIES})
|
|
|
|
if(wxWidgets_FOUND)
|
|
set(SRCS Src/ARCodeAddEdit.cpp
|
|
Src/AboutDolphin.cpp
|
|
Src/CheatsWindow.cpp
|
|
Src/ConfigMain.cpp
|
|
Src/Debugger/BreakpointDlg.cpp
|
|
Src/Debugger/BreakpointView.cpp
|
|
Src/Debugger/BreakpointWindow.cpp
|
|
Src/Debugger/CodeView.cpp
|
|
Src/Debugger/CodeWindow.cpp
|
|
Src/Debugger/CodeWindowFunctions.cpp
|
|
Src/Debugger/DSPDebugWindow.cpp
|
|
Src/Debugger/DSPRegisterView.cpp
|
|
Src/Debugger/DebuggerPanel.cpp
|
|
Src/Debugger/DebuggerUIUtil.cpp
|
|
Src/Debugger/JitWindow.cpp
|
|
Src/Debugger/MemoryCheckDlg.cpp
|
|
Src/Debugger/MemoryView.cpp
|
|
Src/Debugger/MemoryWindow.cpp
|
|
Src/Debugger/RegisterView.cpp
|
|
Src/Debugger/RegisterWindow.cpp
|
|
Src/Frame.cpp
|
|
Src/FrameAui.cpp
|
|
Src/FrameTools.cpp
|
|
Src/GameListCtrl.cpp
|
|
Src/GeckoCodeDiag.cpp
|
|
Src/HotkeyDlg.cpp
|
|
Src/ISOFile.cpp
|
|
Src/ISOProperties.cpp
|
|
Src/InputConfigDiag.cpp
|
|
Src/InputConfigDiagBitmaps.cpp
|
|
Src/LogConfigWindow.cpp
|
|
Src/LogWindow.cpp
|
|
Src/Main.cpp
|
|
Src/MemcardManager.cpp
|
|
Src/MemoryCards/GCMemcard.cpp
|
|
Src/MemoryCards/WiiSaveCrypted.cpp
|
|
Src/NetWindow.cpp
|
|
Src/PHackSettings.cpp
|
|
Src/PatchAddEdit.cpp
|
|
Src/UDPConfigDiag.cpp
|
|
Src/VideoConfigDiag.cpp
|
|
Src/WXInputBase.cpp
|
|
Src/WiimoteConfigDiag.cpp
|
|
Src/WxUtils.cpp)
|
|
|
|
set(WXLIBS ${wxWidgets_LIBRARIES}
|
|
${GTK2_LIBRARIES})
|
|
else()
|
|
set(SRCS Src/MainNoGUI.cpp)
|
|
endif()
|
|
|
|
if(WIN32)
|
|
set(SRCS ${SRCS} Src/stdafx.cpp)
|
|
elseif((${CMAKE_SYSTEM_NAME} MATCHES "Darwin") AND NOT wxWidgets_FOUND)
|
|
# TODO
|
|
elseif((${CMAKE_SYSTEM_NAME} MATCHES "Darwin") AND wxWidgets_FOUND)
|
|
# TODO
|
|
else()
|
|
set(SRCS ${SRCS} Src/X11Utils.cpp)
|
|
endif()
|
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR
|
|
${CMAKE_SYSTEM_NAME} MATCHES "NetBSD")
|
|
set(LIBS ${LIBS} usbhid)
|
|
endif()
|
|
|
|
if(wxWidgets_FOUND)
|
|
set(DOLPHIN_EXE dolphin-emu)
|
|
else()
|
|
set(DOLPHIN_EXE dolphin-emu-nogui)
|
|
endif()
|
|
|
|
add_executable(${DOLPHIN_EXE} ${SRCS})
|
|
target_link_libraries(${DOLPHIN_EXE} ${LIBS} ${WXLIBS})
|
|
install(TARGETS ${DOLPHIN_EXE} RUNTIME DESTINATION ${bindir})
|
|
|