Add missing nostalgia directory level in src tree
This commit is contained in:
26
src/nostalgia/player/CMakeLists.txt
Normal file
26
src/nostalgia/player/CMakeLists.txt
Normal file
@@ -0,0 +1,26 @@
|
||||
cmake_minimum_required(VERSION 2.8.11)
|
||||
|
||||
project(nostalgia)
|
||||
|
||||
add_executable(
|
||||
nostalgia
|
||||
main.cpp
|
||||
)
|
||||
|
||||
if(COMMAND OBJCOPY_FILE)
|
||||
set_target_properties(nostalgia
|
||||
PROPERTIES
|
||||
LINK_FLAGS ${LINKER_FLAGS}
|
||||
COMPILER_FLAGS "-mthumb -mthumb-interwork"
|
||||
)
|
||||
|
||||
OBJCOPY_FILE(nostalgia)
|
||||
#PADBIN_FILE(nostalgia)
|
||||
endif()
|
||||
|
||||
target_link_libraries(
|
||||
nostalgia
|
||||
NostalgiaCore
|
||||
OxStd
|
||||
OxFS
|
||||
)
|
20
src/nostalgia/player/main.cpp
Normal file
20
src/nostalgia/player/main.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright 2016-2017 gtalent2@gmail.com
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#include <nostalgia/core/core.hpp>
|
||||
|
||||
using namespace nostalgia;
|
||||
|
||||
int main() {
|
||||
core::init();
|
||||
core::initConsole();
|
||||
core::puts(9 * 32 + 8, "HELLO,WORLD!");
|
||||
core::puts(10 * 32 + 8, "01234 56789");
|
||||
while (1);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user