summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-27 17:38:00 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-27 17:38:00 -0600
commitb1fc106b5294d162415ff715c6dece11945efdb2 (patch)
tree8ff16e13b987e5b8a4cac6f8ceabf35c9a046a94
parente5e15c04bc58c34906e6d7cfcbad68d1a5617563 (diff)
wip
-rw-r--r--CMakeLists.txt9
-rw-r--r--lib9p/CMakeLists.txt12
-rw-r--r--libusb/CMakeLists.txt10
3 files changed, 17 insertions, 14 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 73c6b8f..7f16070 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,9 +12,7 @@ project(sbc_harness)
pico_sdk_init()
-add_custom_target(generate
- COMMENT Create generated files that are included in the source distribution
-)
+define_property(TARGET PROPERTY "GENERATED_SOURCES")
add_subdirectory(libcr)
add_subdirectory(libcr_ipc)
@@ -24,3 +22,8 @@ add_subdirectory(lib9p)
add_subdirectory(cmd/sbc_harness)
add_subdirectory(cmd/srv9p)
+
+add_custom_target(generate
+ COMMENT Create generated files that are included in the source distribution
+ DEPENDS
+)
diff --git a/lib9p/CMakeLists.txt b/lib9p/CMakeLists.txt
index 0faa109..c8cfa23 100644
--- a/lib9p/CMakeLists.txt
+++ b/lib9p/CMakeLists.txt
@@ -26,9 +26,9 @@ add_custom_command(
DEPENDS types.gen 9P2000.txt 9P2000.u.txt 9P2000.e.txt
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/types.gen 9P2000.txt 9P2000.u.txt 9P2000.e.txt
)
-add_dependencies(generate
- ${CMAKE_SOURCE_DIR}/3rd-party/linux-errno.txt
- ${CMAKE_CURRENT_SOURCE_DIR}/linux-errno.h
- ${CMAKE_CURRENT_SOURCE_DIR}/types.c
- ${CMAKE_CURRENT_SOURCE_DIR}/include/lib9p/_types.h
-)
+# add_dependencies(generate
+# ${CMAKE_SOURCE_DIR}/3rd-party/linux-errno.txt
+# ${CMAKE_CURRENT_SOURCE_DIR}/linux-errno.h
+# ${CMAKE_CURRENT_SOURCE_DIR}/types.c
+# ${CMAKE_CURRENT_SOURCE_DIR}/include/lib9p/_types.h
+# )
diff --git a/libusb/CMakeLists.txt b/libusb/CMakeLists.txt
index 8f015a1..6c25703 100644
--- a/libusb/CMakeLists.txt
+++ b/libusb/CMakeLists.txt
@@ -16,8 +16,8 @@ add_custom_command(
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/include/libusb/tusb_helpers.gen
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/include/libusb/tusb_helpers.gen
)
-add_dependencies(generate
- ${CMAKE_SOURCE_DIR}/3rd-party/MS-LCID.pdf
- ${CMAKE_SOURCE_DIR}/3rd-party/MS-LCID.txt
- ${CMAKE_CURRENT_SOURCE_DIR}/include/libusb/tusb_helpers.h
-)
+# add_dependencies(generate
+# ${CMAKE_SOURCE_DIR}/3rd-party/MS-LCID.pdf
+# ${CMAKE_SOURCE_DIR}/3rd-party/MS-LCID.txt
+# ${CMAKE_CURRENT_SOURCE_DIR}/include/libusb/tusb_helpers.h
+# )