1 # Build Common Sourcecode Project, Agar.
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.
6 cmake_minimum_required (VERSION 2.8)
7 cmake_policy(SET CMP0011 NEW)
10 message("** Start of configure CommonSourceProject,FMR 30, Qt **")
13 project (emufmr30_i286)
15 set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake")
47 set(BUILD_FMR30_86 OFF CACHE BOOL "Build for FM-R30, i86 version")
48 set(BUILD_FMR30_286 ON CACHE BOOL "Build for FM-R30, i286 version")
50 set(EXEC_TARGET emufmr30_i86)
52 set(VMFILES ${VMFILES}
55 add_definitions(-DHAS_I86)
56 elseif(BUILD_FMR30_286)
57 set(EXEC_TARGET emufmr30_i286)
59 set(VMFILES ${VMFILES}
62 add_definitions(-DHAS_I286)
65 set(BUILD_SHARED_LIBS OFF)
66 set(USE_OPENMP ON CACHE BOOL "Build using OpenMP")
67 set(USE_OPENGL ON CACHE BOOL "Build using OpenGL")
68 set(WITH_DEBUGGER ON CACHE BOOL "Build with debugger.")
70 include(detect_target_cpu)
71 #include(windows-mingw-cross)
73 set(CMAKE_SYSTEM_PROCESSOR ${ARCHITECTURE} CACHE STRING "Set processor to build.")
75 add_definitions(-D_CONFIGURE_WITH_CMAKE)
76 add_definitions(-D_FMR30)
77 set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/fmr30.qrc)
79 include(config_commonsource)