OSDN Git Service

[BUILD][MZ2800] Fix FTBFS.
[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                    mz1p17.cpp
23                    scsi_dev.cpp
24                    scsi_hdd.cpp
25                    scsi_host.cpp
26                    event.cpp
27                    io.cpp
28 )
29 set(VMFILES_LIB
30                    i8253.cpp
31                    i8255.cpp
32                    i8259.cpp
33                    noise.cpp
34                    rp5c01.cpp
35                    z80sio.cpp
36                    z80pio.cpp
37                    prnfile.cpp
38                    #            i286.cpp
39                    upd71071.cpp
40                    mb8877.cpp
41                    not.cpp
42                    pcm1bit.cpp
43                    ym2203.cpp
44                    disk.cpp
45 )
46 set(FLAG_USE_I286 ON)
47
48 set(BUILD_SHARED_LIBS OFF)
49 set(USE_OPENMP ON CACHE BOOL "Build using OpenMP")
50 set(USE_OPENGL ON CACHE BOOL "Build using OpenGL")
51 set(WITH_DEBUGGER ON CACHE BOOL "Build with debugger.")
52
53 include(detect_target_cpu)
54 # set entry
55 set(CMAKE_SYSTEM_PROCESSOR ${ARCHITECTURE} CACHE STRING "Set processor to build.")
56
57 add_definitions(-D_MZ2800)
58 set(EXEC_TARGET emumz2800)
59 set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/mz2800.qrc)
60
61 include(config_commonsource)