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.
6 cmake_minimum_required (VERSION 2.8)
7 cmake_policy(SET CMP0011 NEW)
19 set(VMFILES_MZ800 ${VMFILES_BASE}
23 set(VMFILES_MZ1500 ${VMFILES_MZ800}
47 set(VMFILES_LIB_MZ1500 ${VMFILES_LIB_MZ800}
52 set(BUILD_MZ700 OFF CACHE BOOL "Build EMU-MZ800")
53 set(BUILD_MZ800 OFF CACHE BOOL "Build EMU-MZ800")
54 set(BUILD_MZ1500 OFF CACHE BOOL "Build EMU-MZ1500")
56 set(BUILD_SHARED_LIBS OFF)
57 set(USE_OPENMP ON CACHE BOOL "Build using OpenMP")
58 set(USE_OPENGL ON CACHE BOOL "Build using OpenGL")
59 set(WITH_DEBUGGER ON CACHE BOOL "Build with debugger.")
61 include(detect_target_cpu)
62 #include(windows-mingw-cross)
64 set(CMAKE_SYSTEM_PROCESSOR ${ARCHITECTURE} CACHE STRING "Set processor to build.")
69 set(VMFILES ${VMFILES_MZ1500})
70 add_definitions(-D_MZ1500)
71 set(EXEC_TARGET emumz1500)
72 set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/mz1500.qrc)
73 set(VMFILES_LIB ${VMFILES_LIB} ${VMFILES_LIB_MZ1500})
77 set(VMFILES ${VMFILES_MZ800})
78 add_definitions(-D_MZ800)
79 set(EXEC_TARGET emumz800)
80 set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/mz800.qrc)
81 set(VMFILES_LIB ${VMFILES_LIB} ${VMFILES_LIB_MZ800})
85 set(VMFILES ${VMFILES_BASE})
86 add_definitions(-D_MZ700)
87 set(EXEC_TARGET emumz700)
88 set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/mz700.qrc)
92 include(config_commonsource)