mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-06-25 23:29:33 +00:00
40 lines
1023 B
CMake
40 lines
1023 B
CMake
cmake_minimum_required(VERSION 3.1)
|
|
project(dingusppc)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-c -Wall -O3 -s")
|
|
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
|
|
|
|
set(SOURCE_FILES
|
|
devices/heathrow.cpp
|
|
devices/memctrlbase.cpp
|
|
devices/mpc106.cpp
|
|
devices/viacuda.cpp
|
|
debugger/debugger.cpp
|
|
poweropcodes.cpp
|
|
ppcfpopcodes.cpp
|
|
ppcgekkoopcodes.cpp
|
|
ppcmemory.cpp
|
|
ppcopcodes.cpp
|
|
main.cpp
|
|
)
|
|
|
|
set(HEADER_FILES
|
|
devices/machineid.h
|
|
devices/macio.h
|
|
devices/memctrlbase.h
|
|
devices/mmiodevice.h
|
|
devices/mpc106.h
|
|
devices/pcidevice.h
|
|
devices/pcihost.h
|
|
devices/viacuda.h
|
|
debugger/debugger.h
|
|
ppcemumain.h
|
|
ppcmemory.h
|
|
)
|
|
|
|
add_executable(dingusppc ${SOURCE_FILES} ${HEADER_FILES})
|
|
install (TARGETS dingusppc DESTINATION ${EXECUTABLE_OUTPUT_PATH})
|