blob: 5f96e1651921664490d63bb70285d70ae0f9fc49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
cmake_minimum_required(VERSION 2.8.11)
set(CMAKE_CXX_STANDARD 11)
SET(PROJECT_WX melonDS)
PROJECT(${PROJECT_WX})
SET(SOURCES
src/wx/main.cpp
src/wx/EmuConfig.cpp
src/wx/InputConfig.cpp
src/wx/Platform.cpp
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
src/SPU.cpp
src/Wifi.cpp)
if (UNIX)
find_package(GTK2 2.0 REQUIRED)
include_directories(${GTK2_INCLUDE_DIRS})
endif (UNIX)
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})
set(CMAKE_BUILD_TYPE Release)
install(TARGETS ${PROJECT_WX} RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
|