summaryrefslogtreecommitdiff
path: root/tools/subrast/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tools/subrast/CMakeLists.txt')
-rw-r--r--tools/subrast/CMakeLists.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/subrast/CMakeLists.txt b/tools/subrast/CMakeLists.txt
new file mode 100644
index 0000000..6393734
--- /dev/null
+++ b/tools/subrast/CMakeLists.txt
@@ -0,0 +1,19 @@
+add_executable(subrast WIN32
+ main.cpp
+ subrast.cpp
+ subrast.h
+)
+
+target_link_libraries(subrast
+ PUBLIC
+ librw::skeleton
+ librw::librw
+)
+
+add_custom_command(
+ TARGET subrast POST_BUILD
+ COMMAND "${CMAKE_COMMAND}" -E make_directory "$<TARGET_FILE_DIR:subrast>/files"
+ COMMAND "${CMAKE_COMMAND}" -E copy_directory "${CMAKE_CURRENT_SOURCE_DIR}/files" "$<TARGET_FILE_DIR:subrast>/files"
+)
+
+librw_platform_target(subrast)