-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed msvc solution/projects. Added support for CMake
- Loading branch information
Showing
14 changed files
with
77 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
cmake_minimum_required(VERSION 3.22) | ||
|
||
|
||
set(CMAKE_C_STANDARD 11) | ||
|
||
option(BUILD_SHARED_LIBS "Build using shared libraries" ON) | ||
|
||
project(vrEmu6502) | ||
|
||
if (WIN32) | ||
if (NOT BUILD_SHARED_LIBS) | ||
add_definitions(-DVR_6502_EMU_STATIC) | ||
endif() | ||
endif() | ||
|
||
include(CTest) | ||
|
||
add_subdirectory(src) | ||
add_subdirectory(test) |
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
|
||
add_library(vrEmu6502 vrEmu6502.c) | ||
|
||
if (WIN32) | ||
if (BUILD_SHARED_LIBS) | ||
add_definitions(-DVR_6502_EMU_COMPILING_DLL) | ||
else() | ||
add_definitions(-DVR_6502_EMU_STATIC) | ||
endif() | ||
endif() | ||
|
||
target_include_directories (vrEmu6502 INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
enable_testing() | ||
|
||
add_executable (vrEmu6502Test vrEmu6502Test.c) | ||
|
||
target_link_libraries(vrEmu6502Test vrEmu6502) | ||
|
||
set(TESTS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/programs/) | ||
|
||
add_test(6502_functional_test vrEmu6502Test -quiet -cpu 6502 ${TESTS_DIR}6502_functional_test.hex) | ||
add_test(65c02_functional_test vrEmu6502Test -quiet -cpu 65c02 ${TESTS_DIR}6502_functional_test.hex) | ||
add_test(w65c02_functional_test vrEmu6502Test -quiet -cpu w65c02 ${TESTS_DIR}6502_functional_test.hex) | ||
add_test(r65c02_functional_test vrEmu6502Test -quiet -cpu r65c02 ${TESTS_DIR}6502_functional_test.hex) | ||
|
||
add_test(6502_decimal_test vrEmu6502Test -quiet -cpu 6502 ${TESTS_DIR}6502_decimal_test.hex) | ||
add_test(65c02_decimal_test vrEmu6502Test -quiet -cpu 65c02 ${TESTS_DIR}6502_decimal_test.hex) | ||
add_test(w65c02_decimal_test vrEmu6502Test -quiet -cpu w65c02 ${TESTS_DIR}6502_decimal_test.hex) | ||
add_test(r65c02_decimal_test vrEmu6502Test -quiet -cpu r65c02 ${TESTS_DIR}6502_decimal_test.hex) | ||
|
||
add_test(65c02_extended_test vrEmu6502Test -quiet -cpu 65c02 ${TESTS_DIR}65C02_extended_opcodes_test.hex) | ||
add_test(w65c02_extended_test vrEmu6502Test -quiet -cpu w65c02 ${TESTS_DIR}W65C02_extended_opcodes_test.hex) | ||
add_test(r65c02_extended_test vrEmu6502Test -quiet -cpu r65c02 ${TESTS_DIR}R65C02_extended_opcodes_test.hex) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.