Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add '-pn' option to specify port name. #62

Closed
wants to merge 23 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required (VERSION 3.2...3.5)
project (NukedSC55 VERSION 0.2.0 LANGUAGES CXX)
project (NukedSC55 VERSION 0.2.0 LANGUAGES C CXX)

include(FindPkgConfig)
include(GNUInstallDirs)
Expand All @@ -10,6 +10,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

# Prefer C++11 standard
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_C_STANDARD 11)

if(NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
Expand Down Expand Up @@ -194,6 +195,7 @@ set(SC55_SRC
src/mcu_opcodes.cpp src/mcu_opcodes.h
src/mcu_timer.cpp src/mcu_timer.h
src/midi.h
src/serial.h
src/pcm.cpp src/pcm.h
src/submcu.cpp src/submcu.h

Expand All @@ -206,6 +208,12 @@ elseif(WIN32)
list(APPEND SC55_SRC src/midi_win32.cpp)
endif()

if(WIN32)
list(APPEND SC55_SRC src/serial_win32.c)
elseif(UNIX)
list(APPEND SC55_SRC src/serial_posix.c)
endif()

add_executable(nuked-sc55 ${SC55_SRC} ${UTF8MAIN_SRCS})
set_nopie(nuked-sc55)

Expand Down Expand Up @@ -257,6 +265,7 @@ macro(copy_rom_target TargetName TargetFile)
endmacro()

copy_rom_target(back_data back.data)
copy_rom_target(sc55mkII_background.bmp sc55mkII_background.bmp)

install(TARGETS nuked-sc55
EXPORT NukedSC55StaticTargets
Expand Down
Binary file added data/sc55mkII_background.bmp
Binary file not shown.
Loading