OSDN Git Service

[COMMON] Fix unaligned SIMD variables.Fix crash built with "-msse2" at Win32.
[csp-qt/common_source_project-fm7.git] / source / build-cmake / m5 / 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,SORD m5, Qt **")
11 message("")
12
13 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../cmake")
14
15
16 project (emum5)
17
18 set(EXEC_TARGET emum5)
19 set(VM_NAME m5)
20 set(USE_FMGEN OFF)
21 set(WITH_JOYSTICK ON)
22 set(WITH_MOUSE ON)
23
24 set(FLAG_USE_Z80 ON)
25 set(VMFILES_BASE
26       memory.cpp
27   
28       io.cpp
29       event.cpp
30 )
31
32 set(VMFILES_LIB
33       datarec.cpp
34           noise.cpp
35       sn76489an.cpp
36       tms9918a.cpp
37       z80ctc.cpp
38 )
39 set(USE_OPENMP ON CACHE BOOL "Build using OpenMP")
40 set(USE_OPENGL ON CACHE BOOL "Build using OpenGL")
41 set(WITH_DEBUGGER ON CACHE BOOL "Build with debugger.")
42
43 include(detect_target_cpu)
44 # set entry
45 set(CMAKE_SYSTEM_PROCESSOR ${ARCHITECTURE} CACHE STRING "Set processor to build.")
46
47 set(VMFILES ${VMFILES_BASE})
48 add_definitions(-D_M5)
49 set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/m5.qrc)
50
51 include(config_commonsource)