OSDN Git Service

[VM][MZ2800] Fix crash at building VM. Thanks to http://hanabi.2ch.net/test/read...
[csp-qt/common_source_project-fm7.git] / source / build-cmake / mz2800 / CMakeLists.txt
1 # Build Common Sourcecode Project, Qt.
2 # (C) 2014 K.Ohta <whatisthis.sowhat@gmail.com>
3 # This is part of XM7/SDL, but license is apache 2.2,
4 # this part was written only me.
5
6 cmake_minimum_required (VERSION 2.8)
7 cmake_policy(SET CMP0011 NEW)
8
9 message("")
10 message("** Start of configure CommonSourceProject,MYCOM Z80A, Qt **")
11 message("")
12
13 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../cmake")
14
15 project (mz2800)
16 set(VM_NAME mz2800)
17 set(USE_FMGEN ON)
18 set(WITH_JOYSTICK ON)
19 set(WITH_MOUSE ON) 
20
21 set(VMFILES
22                    i286.cpp
23                    mb8877.cpp
24                    
25                    i8253.cpp
26                    i8255.cpp
27                    i8259.cpp
28                    not.cpp
29                    
30                    pcm1bit.cpp
31                    rp5c01.cpp
32                    upd71071.cpp
33                    ym2203.cpp
34                    z80pio.cpp
35                    z80sio.cpp
36                    mz1p17.cpp
37                    prnfile.cpp
38                    
39                    disk.cpp
40                    event.cpp
41                    io.cpp
42 )
43
44 set(BUILD_SHARED_LIBS OFF)
45 set(USE_OPENMP ON CACHE BOOL "Build using OpenMP")
46 set(USE_OPENGL ON CACHE BOOL "Build using OpenGL")
47 set(WITH_DEBUGGER ON CACHE BOOL "Build with debugger.")
48
49 include(detect_target_cpu)
50 # set entry
51 set(CMAKE_SYSTEM_PROCESSOR ${ARCHITECTURE} CACHE STRING "Set processor to build.")
52
53 add_definitions(-D_MZ2800)
54 set(EXEC_TARGET emumz2800)
55 set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/mz2800.qrc)
56
57 include(config_commonsource)