mirror of
https://github.com/aap/librw.git
synced 2024-11-27 06:05:42 +00:00
33 lines
619 B
CMake
33 lines
619 B
CMake
add_executable(dumprwtree
|
|
dumprwtree.cpp
|
|
)
|
|
|
|
target_link_libraries(dumprwtree
|
|
PUBLIC
|
|
librw
|
|
)
|
|
|
|
if(LIBRW_INSTALL)
|
|
install(TARGETS dumprwtree
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
)
|
|
endif()
|
|
|
|
if(NINTENDO_SWITCH)
|
|
nx_generate_nacp(dumprwtree.nacp
|
|
NAME "dumprwtree"
|
|
AUTHOR "${librw_AUTHOR}"
|
|
VERSION "${librw_VERSION}"
|
|
)
|
|
|
|
nx_create_nro(dumprwtree
|
|
NACP dumprwtree.nacp
|
|
)
|
|
|
|
if(LIBRW_INSTALL)
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/dumprwtree.nro"
|
|
DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
)
|
|
endif()
|
|
endif()
|