set(BUILD_FM16BETA_286 ON CACHE BOOL "Build for Fujitsu FM-16β(i286)")
set(BUILD_FM16BETA_186 ON CACHE BOOL "Build for Fujitsu FM-16β(i186)")
set(BUILD_FM16PI ON CACHE BOOL "Build for Fujitsu FM-16π")

if(BUILD_FM16BETA_186)
	set(RESOURCE ${PROJECT_SOURCE_DIR}/src/qt/common/qrc/fm16beta.qrc)
	ADD_VM(fm16beta emufm16beta_186 _FM16BETA)
	target_compile_definitions(emufm16beta_186 PRIVATE -DHAS_I186)
	target_compile_definitions(common_emufm16beta_186 PRIVATE -DHAS_I186)
endif()
if(BUILD_FM16BETA_286)
	set(RESOURCE ${PROJECT_SOURCE_DIR}/src/qt/common/qrc/fm16beta.qrc)
	ADD_VM(fm16beta emufm16beta_286 _FM16BETA)
	target_compile_definitions(emufm16beta_286 PRIVATE -DHAS_I286)
	target_compile_definitions(common_emufm16beta_286 PRIVATE -DHAS_I286)
endif()
if(BUILD_FM16PI)
	set(RESOURCE ${PROJECT_SOURCE_DIR}/src/qt/common/qrc/fm16beta.qrc)
	ADD_VM(fm16pi emufm16pi _FM16PI)
endif()
