2020-10-26 23:41:07 +00:00
|
|
|
add_executable(dumprwtree
|
2020-12-03 17:11:55 +00:00
|
|
|
dumprwtree.cpp
|
|
|
|
)
|
2020-10-26 23:41:07 +00:00
|
|
|
|
|
|
|
target_link_libraries(dumprwtree
|
|
|
|
PUBLIC
|
|
|
|
librw
|
2020-12-03 17:11:55 +00:00
|
|
|
)
|
2020-10-26 23:41:07 +00:00
|
|
|
|
|
|
|
if(LIBRW_INSTALL)
|
|
|
|
install(TARGETS dumprwtree
|
|
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
2020-12-03 17:11:55 +00:00
|
|
|
)
|
2020-10-26 23:41:07 +00:00
|
|
|
endif()
|
2021-06-17 14:44:20 +01:00
|
|
|
|
|
|
|
if(NINTENDO_SWITCH)
|
|
|
|
nx_generate_nacp( dumprwtree.nacp
|
|
|
|
NAME "dumprwtree"
|
|
|
|
AUTHOR "aap"
|
|
|
|
VERSION "1.0.0"
|
|
|
|
)
|
|
|
|
|
|
|
|
nx_create_nro(dumprwtree
|
|
|
|
NACP dumprwtree.nacp
|
|
|
|
)
|
|
|
|
|
|
|
|
if(LIBRW_INSTALL)
|
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/dumprwtree.nro"
|
|
|
|
DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|