OSDN Git Service

.
[csp-qt/common_source_project-fm7.git] / source / build-cmake / pv1000 / 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,CASIO PV-1000, Qt **")
11 message("")
12
13 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../cmake")
14
15 project (pv1000)
16 set(VM_NAME pv1000)
17 set(USE_FMGEN OFF)
18 set(WITH_JOYSTICK ON)
19 set(WITH_MOUSE OFF)
20 set(FLAG_USE_Z80 ON)
21 set(VMFILES
22                    io.cpp
23                    memory.cpp
24   
25                    event.cpp
26 )
27
28 set(BUILD_SHARED_LIBS OFF)
29 set(USE_OPENMP ON CACHE BOOL "Build using OpenMP")
30 set(USE_OPENGL ON CACHE BOOL "Build using OpenGL")
31 set(WITH_DEBUGGER ON CACHE BOOL "Build with debugger")
32
33 include(detect_target_cpu)
34 set(CMAKE_SYSTEM_PROCESSOR ${ARCHITECTURE} CACHE STRING "Set processor to build.")
35
36 add_definitions(-D_PV1000)
37 set(EXEC_TARGET emupv1000)
38 set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/pv1000.qrc)
39
40 include(config_commonsource)