-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from pspdev/move_examples
Move examples to a different folder
- Loading branch information
Showing
3 changed files
with
12 additions
and
12 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
20 changes: 10 additions & 10 deletions
20
src/example/CMakeLists.txt → examples/basic/CMakeLists.txt
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 |
---|---|---|
@@ -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 $<TARGET_FILE:pspme_prx> ${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" | ||
) |
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