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)
11 set(WITH_JOYSTICK OFF)
41 set(FLAG_USE_MC6809 ON)
43 set(BUILD_SHARED_LIBS OFF)
45 set(BUILD_FM16BETA_286 OFF CACHE BOOL "Build for FM16Beta, i286 version")
46 set(BUILD_FM16BETA_86 OFF CACHE BOOL "Build for FM16Beta, i86 version")
48 set(USE_OPENMP ON CACHE BOOL "Build using OpenMP")
49 set(USE_OPENGL ON CACHE BOOL "Build using OpenGL")
51 set(WITH_DEBUGGER ON CACHE BOOL "Build with debugger.")
54 include(detect_target_cpu)
55 #include(windows-mingw-cross)
57 set(CMAKE_SYSTEM_PROCESSOR ${ARCHITECTURE} CACHE STRING "Set processor to build.")
59 add_definitions(-D_CONFIGURE_WITH_CMAKE)
61 if(BUILD_FM16BETA_286)
62 set(EXEC_TARGET emufm16beta_286)
63 add_definitions(-D_FM16BETA)
64 add_definitions(-DHAS_I286)
65 set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/fm16beta.qrc)
66 # set(FLAG_USE_I286 ON)
67 elseif(BUILD_FM16BETA_86)
68 set(EXEC_TARGET emufm16beta_86)
69 add_definitions(-D_FM16BETA)
70 add_definitions(-DHAS_I186)
71 # set(FLAG_USE_I286 ON)
72 set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/fm16beta.qrc)
75 #include(config_commonsource)