OSDN Git Service

2247660dd2b294a0ae38f0193dd40b88c2b8fbf2
[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                    
38                    disk.cpp
39                    event.cpp
40                    io.cpp
41 )
42
43 set(BUILD_SHARED_LIBS OFF)
44 set(USE_OPENMP ON CACHE BOOL "Build using OpenMP")
45 set(USE_OPENGL ON CACHE BOOL "Build using OpenGL")
46 set(WITH_DEBUGGER ON CACHE BOOL "Build with debugger.")
47
48 include(detect_target_cpu)
49 # set entry
50 set(CMAKE_SYSTEM_PROCESSOR ${ARCHITECTURE} CACHE STRING "Set processor to build.")
51
52 add_definitions(-D_MZ2800)
53 set(EXEC_TARGET emumz2800)
54 set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/mz2800.qrc)
55
56 include(config_commonsource)