diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-27 19:00:18 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-27 19:00:18 -0600 |
commit | d54ddec236bf9bdb8c032cd5fbdb0aa46ffebe86 (patch) | |
tree | b2a4563347f4b91d276f174303e0a7b81c525b34 /lib9p/CMakeLists.txt | |
parent | b1fc106b5294d162415ff715c6dece11945efdb2 (diff) |
use GNU Make for `generate`
Diffstat (limited to 'lib9p/CMakeLists.txt')
-rw-r--r-- | lib9p/CMakeLists.txt | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/lib9p/CMakeLists.txt b/lib9p/CMakeLists.txt index c8cfa23..af73ba9 100644 --- a/lib9p/CMakeLists.txt +++ b/lib9p/CMakeLists.txt @@ -4,31 +4,10 @@ # SPDX-Licence-Identifier: AGPL-3.0-or-later add_library(lib9p INTERFACE) +target_include_directories(lib9p SYSTEM INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include) target_sources(lib9p INTERFACE types.c 9p.c srv.c ) -target_include_directories(lib9p SYSTEM INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include) - -add_custom_command( - OUTPUT ${CMAKE_SOURCE_DIR}/3rd-party/linux-errno.txt - DEPENDS ${CMAKE_SOURCE_DIR}/3rd-party/linux-errno.txt.gen - COMMAND ${CMAKE_SOURCE_DIR}/3rd-party/linux-errno.txt.gen -) -add_custom_command( - OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/include/lib9p/linux-errno.h - DEPENDS include/lib9p/linux-errno.h.gen ${CMAKE_SOURCE_DIR}/3rd-party/linux-errno.txt - COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/include/lib9p/linux-errno.h.gen ${CMAKE_SOURCE_DIR}/3rd-party/linux-errno.txt >${CMAKE_CURRENT_SOURCE_DIR}/include/lib9p/linux-errno.h -) -add_custom_command( - OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/types.c ${CMAKE_CURRENT_SOURCE_DIR}/include/lib9p/_types.h - 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 -# ) +set_source_files_properties(types.c PROPERTIES COMPILE_FLAGS -O3) |