Skip to content

Commit a5d98eb

Browse files
authored
Merge pull request #4 from pspdev/move_examples
Move examples to a different folder
2 parents ca9ffba + 0258259 commit a5d98eb

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
99
# Add subdirectories for each component
1010
add_subdirectory(src/lib) # Static library
1111
add_subdirectory(src/module) # PRX module
12-
add_subdirectory(src/example) # Example program
12+
add_subdirectory(examples/basic) # Basic example program
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
# Example executable
2-
project(fooME)
2+
project(basicME)
33

44
# Collect source files for the example program
55
file(GLOB EXAMPLE_SOURCES *.c)
66

77
# Define the executable target
8-
add_executable(fooME ${EXAMPLE_SOURCES})
8+
add_executable(basicME ${EXAMPLE_SOURCES})
99

1010
# Link against the static library
11-
target_link_libraries(fooME pspme_static)
11+
target_link_libraries(basicME pspme_static)
1212

1313
# TODO: Copy the generated PRX pspme_prx module to the bin directory
1414
# add_custom_command(
15-
# TARGET fooME POST_BUILD
15+
# TARGET basicME POST_BUILD
1616
# COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:pspme_prx> ${CMAKE_BINARY_DIR}/bin
1717
# )
1818

19-
# Set output name to "fooME.elf"
20-
set_target_properties(fooME PROPERTIES OUTPUT_NAME "fooME")
21-
target_include_directories(fooME PRIVATE ${CMAKE_SOURCE_DIR}/include)
19+
# Set output name to "basicME.elf"
20+
set_target_properties(basicME PROPERTIES OUTPUT_NAME "basicME")
21+
target_include_directories(basicME PRIVATE ${CMAKE_SOURCE_DIR}/include)
2222

23-
# Use create_pbp_file to generate a PBP file after building fooME.elf
23+
# Use create_pbp_file to generate a PBP file after building basicME.elf
2424
create_pbp_file(
25-
TARGET fooME
25+
TARGET basicME
2626
ICON_PATH NULL
2727
BACKGROUND_PATH NULL
2828
PREVIEW_PATH NULL
29-
TITLE "fooME"
29+
TITLE "basicME"
3030
)

src/example/main.c renamed to examples/basic/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#define VERS 1
1111
#define REVS 0
12-
PSP_MODULE_INFO("FooME", 0, VERS, REVS);
12+
PSP_MODULE_INFO("BasicME", 0, VERS, REVS);
1313
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);
1414

1515
static int exitRequest = 0;

0 commit comments

Comments
 (0)