diff options
-rw-r--r-- | CMakeLists.txt | 9 | ||||
-rw-r--r-- | lib9p/CMakeLists.txt | 12 | ||||
-rw-r--r-- | libusb/CMakeLists.txt | 10 |
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 +# ) |