OSDN Git Service

[UI][Qt] Add YALKY, PC-2000, SMC-70.
[csp-qt/common_source_project-fm7.git] / source / build-cmake / yalky / 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, Yuasa Kyouiku System YALKY, Qt **")
11 message("")
12
13 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../cmake")
14
15 project (emuyalky)
16
17 set(EXEC_TARGET emuyalky)
18 set(VM_NAME yalky)
19 set(USE_FMGEN OFF)
20 set(WITH_JOYSTICK OFF)
21 set(WITH_MOUSE ON)
22
23 set(VMFILES_BASE
24         i8080.cpp
25         i8155.cpp
26         not.cpp
27         datarec.cpp
28         memory.cpp
29
30         event.cpp
31 )
32
33
34 set(USE_OPENMP ON CACHE BOOL "Build using OpenMP")
35 set(USE_OPENGL ON CACHE BOOL "Build using OpenGL")
36 set(WITH_DEBUGGER ON CACHE BOOL "Build with debugger.")
37
38
39 include(detect_target_cpu)
40 set(CMAKE_SYSTEM_PROCESSOR ${ARCHITECTURE} CACHE STRING "Set processor to build.")
41
42 set(VMFILES ${VMFILES_BASE})
43
44 add_definitions(-D_YALKY)
45 set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/yalky.qrc)
46
47 include(config_commonsource)