2017-04-02 07:33:01 +00:00
|
|
|
cmake_minimum_required(VERSION 2.8.11)
|
|
|
|
|
|
|
|
SET(PROJECT_WX melonDS)
|
|
|
|
PROJECT(${PROJECT_WX})
|
|
|
|
SET(INSTALL_PATH /usr/local/bin/)
|
|
|
|
|
|
|
|
SET(SOURCES
|
|
|
|
src/wx/main.cpp
|
|
|
|
src/wx/EmuConfig.cpp
|
|
|
|
src/wx/InputConfig.cpp
|
2017-05-09 02:55:38 +00:00
|
|
|
src/wx/Platform.cpp
|
2017-04-02 07:33:01 +00:00
|
|
|
src/ARM.cpp
|
|
|
|
src/ARMInterpreter.cpp
|
|
|
|
src/ARMInterpreter_ALU.cpp
|
|
|
|
src/ARMInterpreter_Branch.cpp
|
|
|
|
src/ARMInterpreter_LoadStore.cpp
|
|
|
|
src/Config.cpp
|
|
|
|
src/CP15.cpp
|
|
|
|
src/DMA.cpp
|
|
|
|
src/GPU.cpp
|
|
|
|
src/GPU2D.cpp
|
|
|
|
src/GPU3D.cpp
|
|
|
|
src/GPU3D_Soft.cpp
|
|
|
|
src/NDS.cpp
|
|
|
|
src/NDSCart.cpp
|
|
|
|
src/RTC.cpp
|
|
|
|
src/SPI.cpp
|
2017-04-30 01:46:27 +00:00
|
|
|
src/SPU.cpp
|
2017-04-02 07:33:01 +00:00
|
|
|
src/Wifi.cpp)
|
|
|
|
|
2017-04-30 01:46:27 +00:00
|
|
|
if (UNIX)
|
2017-04-02 07:33:01 +00:00
|
|
|
find_package(GTK2 2.0 REQUIRED)
|
|
|
|
include_directories(${GTK2_INCLUDE_DIRS})
|
2017-04-30 01:46:27 +00:00
|
|
|
endif (UNIX)
|
2017-04-02 07:33:01 +00:00
|
|
|
|
|
|
|
find_package(wxWidgets REQUIRED)
|
|
|
|
include(${wxWidgets_USE_FILE})
|
|
|
|
link_libraries(${wxWidgets_LIBRARIES})
|
|
|
|
|
|
|
|
find_package(SDL2 REQUIRED)
|
|
|
|
include_directories(${SDL2_INCLUDE_DIR})
|
|
|
|
link_libraries(${SDL2_LIBRARIES})
|
|
|
|
|
|
|
|
add_executable(${PROJECT_WX} ${SOURCES})
|
|
|
|
target_link_libraries(${PROJECT_WX})
|
|
|
|
|
|
|
|
install(TARGETS ${PROJECT_WX} DESTINATION ${INSTALL_PATH})
|