Skip to content

Commit

Permalink
ADD: add CMakeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
T-K-233 committed Apr 24, 2024
1 parent 858bf10 commit 8615866
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
add_subdirectory(freertos)
add_subdirectory(htif)
47 changes: 47 additions & 0 deletions lib/htif/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
set(INCLUDE
${CMAKE_CURRENT_SOURCE_DIR}/inc/
)
set(SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/src/access.c
${CMAKE_CURRENT_SOURCE_DIR}/src/chdir.c
${CMAKE_CURRENT_SOURCE_DIR}/src/chmod.c
${CMAKE_CURRENT_SOURCE_DIR}/src/chown.c
${CMAKE_CURRENT_SOURCE_DIR}/src/close.c
${CMAKE_CURRENT_SOURCE_DIR}/src/execve.c
${CMAKE_CURRENT_SOURCE_DIR}/src/exit.c
${CMAKE_CURRENT_SOURCE_DIR}/src/faccessat.c
${CMAKE_CURRENT_SOURCE_DIR}/src/fork.c
${CMAKE_CURRENT_SOURCE_DIR}/src/fstat.c
${CMAKE_CURRENT_SOURCE_DIR}/src/fstatat.c
${CMAKE_CURRENT_SOURCE_DIR}/src/ftime.c
${CMAKE_CURRENT_SOURCE_DIR}/src/getcwd.c
${CMAKE_CURRENT_SOURCE_DIR}/src/getpid.c
${CMAKE_CURRENT_SOURCE_DIR}/src/gettimeofday.c
${CMAKE_CURRENT_SOURCE_DIR}/src/htif.c
${CMAKE_CURRENT_SOURCE_DIR}/src/isatty.c
${CMAKE_CURRENT_SOURCE_DIR}/src/kill.c
${CMAKE_CURRENT_SOURCE_DIR}/src/link.c
${CMAKE_CURRENT_SOURCE_DIR}/src/lseek.c
${CMAKE_CURRENT_SOURCE_DIR}/src/lstat.c
${CMAKE_CURRENT_SOURCE_DIR}/src/nanosleep.c
${CMAKE_CURRENT_SOURCE_DIR}/src/open.c
${CMAKE_CURRENT_SOURCE_DIR}/src/openat.c
${CMAKE_CURRENT_SOURCE_DIR}/src/printbuf.c
${CMAKE_CURRENT_SOURCE_DIR}/src/printf.c
${CMAKE_CURRENT_SOURCE_DIR}/src/puts.c
${CMAKE_CURRENT_SOURCE_DIR}/src/read.c
${CMAKE_CURRENT_SOURCE_DIR}/src/sbrk.c
${CMAKE_CURRENT_SOURCE_DIR}/src/snprintf.c
${CMAKE_CURRENT_SOURCE_DIR}/src/sprintf.c
${CMAKE_CURRENT_SOURCE_DIR}/src/stat.c
${CMAKE_CURRENT_SOURCE_DIR}/src/sysconf.c
${CMAKE_CURRENT_SOURCE_DIR}/src/times.c
${CMAKE_CURRENT_SOURCE_DIR}/src/unlink.c
${CMAKE_CURRENT_SOURCE_DIR}/src/utime.c
${CMAKE_CURRENT_SOURCE_DIR}/src/vxprintf.c
${CMAKE_CURRENT_SOURCE_DIR}/src/wait.c
${CMAKE_CURRENT_SOURCE_DIR}/src/write.c
)

add_library(htif STATIC ${SOURCES})
target_include_directories(htif PUBLIC ${INCLUDE})

0 comments on commit 8615866

Please sign in to comment.