summaryrefslogtreecommitdiff
path: root/tools/dumprwtree/CMakeLists.txt
diff options
context:
space:
mode:
authorclaude-bot <[email protected]>2026-07-13 12:40:03 +0000
committerclaude-bot <[email protected]>2026-07-13 12:40:03 +0000
commit847962910f0bff071f3bf07c9abb87764fb6cac3 (patch)
treeddcd429e134c7fd5f72ddc97ced175de8d66fcd0 /tools/dumprwtree/CMakeLists.txt
downloadlibrw-847962910f0bff071f3bf07c9abb87764fb6cac3.tar.gz
librw-847962910f0bff071f3bf07c9abb87764fb6cac3.zip
Import aap/librw @ masterHEADmaster
Snapshot for re3/reVC vendoring, per @lzcnt. Source: https://github.com/aap/librw (master).
Diffstat (limited to 'tools/dumprwtree/CMakeLists.txt')
-rw-r--r--tools/dumprwtree/CMakeLists.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/dumprwtree/CMakeLists.txt b/tools/dumprwtree/CMakeLists.txt
new file mode 100644
index 0000000..092b3dd
--- /dev/null
+++ b/tools/dumprwtree/CMakeLists.txt
@@ -0,0 +1,20 @@
+add_executable(dumprwtree
+ dumprwtree.cpp
+)
+
+target_link_libraries(dumprwtree
+ PRIVATE
+ librw::librw
+)
+
+if(LIBRW_GL3_GFXLIB MATCHES "SDL[23]")
+ target_compile_definitions(dumprwtree PRIVATE SDL_MAIN_HANDLED)
+endif()
+
+if(LIBRW_INSTALL)
+ install(TARGETS dumprwtree
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
+ )
+endif()
+
+librw_platform_target(dumprwtree INSTALL)