mirror of
https://github.com/andwati/mos-6502.git
synced 2026-10-18 03:02:51 +00:00
remove CMake configuration files and related setup
This commit is contained in:
@@ -1,14 +0,0 @@
|
|||||||
cmake_minimum_required(VERSION 3.16)
|
|
||||||
project(mos6502 C)
|
|
||||||
|
|
||||||
set(CMAKE_C_STANDARD 17)
|
|
||||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
|
||||||
|
|
||||||
# Output binaries in /build/bin
|
|
||||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
|
||||||
|
|
||||||
# Add warnings and sanitizer options
|
|
||||||
include(cmake/compiler_warnings.cmake)
|
|
||||||
|
|
||||||
add_subdirectory(src)
|
|
||||||
add_subdirectory(tests)
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
# Custom warnings setup
|
|
||||||
if (MSVC)
|
|
||||||
add_compile_options(/W4 /permissive-)
|
|
||||||
else()
|
|
||||||
add_compile_options(-Wall -Wextra -Wpedantic -Wshadow -Wconversion -Wsign-conversion)
|
|
||||||
endif()
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
add_library(mos6502
|
|
||||||
cpu.c
|
|
||||||
memory.c
|
|
||||||
emulator.c
|
|
||||||
)
|
|
||||||
|
|
||||||
target_include_directories(mos6502 PUBLIC
|
|
||||||
${CMAKE_SOURCE_DIR}/include
|
|
||||||
)
|
|
||||||
|
|
||||||
add_executable(mos6502_emulator main.c)
|
|
||||||
target_link_libraries(mos6502_emulator PRIVATE mos6502)
|
|
||||||
Reference in New Issue
Block a user