all repos — mgba @ 67d25794e1a8b04269742b0d46da927eef30f008

mGBA Game Boy Advance Emulator

CMakeLists.txt (view raw)

 1cmake_minimum_required(VERSION 2.6)
 2project(GBAc)
 3set(CMAKE_C_FLAGS_DEBUG "-g -Wall -Wextra")
 4file(GLOB ARM_SRC ${CMAKE_SOURCE_DIR}/src/arm/*.c)
 5file(GLOB GBA_SRC ${CMAKE_SOURCE_DIR}/src/gba/*.c)
 6file(GLOB DEBUGGER_SRC ${CMAKE_SOURCE_DIR}/src/debugger/*.c)
 7file(GLOB THIRD_PARTY ${CMAKE_SOURCE_DIR}/third-party/linenoise/linenoise.c)
 8include_directories(${CMAKE_SOURCE_DIR}/src/arm)
 9include_directories(${CMAKE_SOURCE_DIR}/src/gba)
10include_directories(${CMAKE_SOURCE_DIR}/src/debugger)
11include_directories(${CMAKE_SOURCE_DIR}/third-party/linenoise)
12add_executable(gbac ${ARM_SRC} ${GBA_SRC} ${DEBUGGER_SRC} ${THIRD_PARTY} ${CMAKE_SOURCE_DIR}/src/main.c)