diff --git a/CMakeLists.txt b/CMakeLists.txt index f9afd4f..15dc608 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,4 +9,4 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) # Add subdirectories for each component add_subdirectory(src/lib) # Static library add_subdirectory(src/module) # PRX module -add_subdirectory(src/example) # Example program \ No newline at end of file +add_subdirectory(examples/basic) # Basic example program \ No newline at end of file diff --git a/src/example/CMakeLists.txt b/examples/basic/CMakeLists.txt similarity index 51% rename from src/example/CMakeLists.txt rename to examples/basic/CMakeLists.txt index ae6eebe..02e2711 100644 --- a/src/example/CMakeLists.txt +++ b/examples/basic/CMakeLists.txt @@ -1,30 +1,30 @@ # Example executable -project(fooME) +project(basicME) # Collect source files for the example program file(GLOB EXAMPLE_SOURCES *.c) # Define the executable target -add_executable(fooME ${EXAMPLE_SOURCES}) +add_executable(basicME ${EXAMPLE_SOURCES}) # Link against the static library -target_link_libraries(fooME pspme_static) +target_link_libraries(basicME pspme_static) # TODO: Copy the generated PRX pspme_prx module to the bin directory # add_custom_command( -# TARGET fooME POST_BUILD +# TARGET basicME POST_BUILD # COMMAND ${CMAKE_COMMAND} -E copy $ ${CMAKE_BINARY_DIR}/bin # ) -# Set output name to "fooME.elf" -set_target_properties(fooME PROPERTIES OUTPUT_NAME "fooME") -target_include_directories(fooME PRIVATE ${CMAKE_SOURCE_DIR}/include) +# Set output name to "basicME.elf" +set_target_properties(basicME PROPERTIES OUTPUT_NAME "basicME") +target_include_directories(basicME PRIVATE ${CMAKE_SOURCE_DIR}/include) -# Use create_pbp_file to generate a PBP file after building fooME.elf +# Use create_pbp_file to generate a PBP file after building basicME.elf create_pbp_file( - TARGET fooME + TARGET basicME ICON_PATH NULL BACKGROUND_PATH NULL PREVIEW_PATH NULL - TITLE "fooME" + TITLE "basicME" ) \ No newline at end of file diff --git a/src/example/main.c b/examples/basic/main.c similarity index 96% rename from src/example/main.c rename to examples/basic/main.c index fb43c0e..2240149 100644 --- a/src/example/main.c +++ b/examples/basic/main.c @@ -9,7 +9,7 @@ #define VERS 1 #define REVS 0 -PSP_MODULE_INFO("FooME", 0, VERS, REVS); +PSP_MODULE_INFO("BasicME", 0, VERS, REVS); PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU); static int exitRequest = 0;