1 # Build Common Sourcecode Project, Qt.
2 # (C) 2014 K.Ohta <whatisthis.sowhat@gmail.com>
3 # This is part of , but license is apache 2.2,
4 # this part was written only me.
7 message("** Start of configure CommonSourceProject,MSX Series Qt **")
28 #set(WITH_DEBUGGER ON CACHE BOOL "Build with debugger.")
30 set(BUILD_SHARED_LIBS OFF)
31 set(USE_OPENMP ON CACHE BOOL "Build using OpenMP")
32 set(USE_OPENGL ON CACHE BOOL "Build using OpenGL")
34 include(detect_target_cpu)
35 #include(windows-mingw-cross)
37 set(CMAKE_SYSTEM_PROCESSOR ${ARCHITECTURE} CACHE STRING "Set processor to build.")
39 add_definitions(-D_CONFIGURE_WITH_CMAKE)
40 add_definitions(-D_MSX_VDP_MESS)
42 set(VMFILES_MSX2 ${VMFILES_BASE}
45 set(VMFILES_LIB_MSX2 ${VMFILES_LIB}
52 set(VMFILES_LIB ${VMFILES_LIB} disk.cpp)
54 set(VMFILES_MSX1 ${VMFILES_BASE}
56 set(VMFILES_LIB_MSX1 ${VMFILES_LIB}
62 set(VMFILES_PX7 ${VMFILES_BASE}
65 set(VMFILES_LIB_PX7 ${VMFILES_LIB}
69 set(VMFILES_HX20 ${VMFILES_BASE}
72 set(VMFILES_LIB_HX20 ${VMFILES_LIB}
77 set(VMFILES_FSA1 ${VMFILES_BASE}
79 set(VMFILES_LIB_FSA1 ${VMFILES_LIB}
85 set(VMFILES_HBF1XDJ ${VMFILES_BASE}
87 set(VMFILES_LIB_HBF1XDJ ${VMFILES_LIB}
93 set(VMFILES_MSX2PLUS ${VMFILES_BASE}
96 set(VMFILES_LIB_MSX2PLUS ${VMFILES_LIB}
103 set(VMFILES ${VMFILES_PX7})
104 set(VMFILES_LIB ${VMFILES_LIB_PX7})
105 add_definitions(-D_PX7)
106 set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/px7.qrc)
108 set(VMFILES ${VMFILES_MSX2})
109 set(VMFILES_LIB ${VMFILES_LIB_MSX2})
110 add_definitions(-D_MSX2)
111 set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/msx2.qrc)
112 elseif(BUILD_MSX2PLUS)
113 set(VMFILES ${VMFILES_MSX2PLUS})
114 set(VMFILES_LIB ${VMFILES_LIB_MSX2PLUS})
115 add_definitions(-D_MSX2P)
116 set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/msx2plus.qrc)
118 set(VMFILES ${VMFILES_HX20})
119 set(VMFILES_LIB ${VMFILES_LIB_HX20})
120 add_definitions(-D_HX20)
121 set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/hx20.qrc)
123 set(VMFILES ${VMFILES_FSA1})
124 set(VMFILES_LIB ${VMFILES_LIB_FSA1})
125 add_definitions(-D_FSA1)
126 set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/fsa1.qrc)
127 elseif(BUILD_HBF1XDJ)
128 set(VMFILES ${VMFILES_HBF1XDJ})
129 set(VMFILES_LIB ${VMFILES_LIB_HBF1XDJ})
130 add_definitions(-D_HBF1XDJ)
131 set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/hbf1xdj.qrc)
133 set(VMFILES ${VMFILES_MSX1})
134 set(VMFILES_LIB ${VMFILES_LIB_MSX1})
135 add_definitions(-D_MSX1)
136 set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/msx1.qrc)
140 set(VMFILES_MSX ${VMFILES_BASE})
143 include(config_commonsource)