mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Update cmake files.
This commit is contained in:
3
setter/src/CMakeLists.txt
Normal file
3
setter/src/CMakeLists.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
set(MAIN_SOURCES main.c main.h)
|
||||
|
||||
add_library(core ${MAIN_SOURCES})
|
||||
16
setter/src/linux/CMakeLists.txt
Normal file
16
setter/src/linux/CMakeLists.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
if(NOT "${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
|
||||
return()
|
||||
endif()
|
||||
|
||||
project(
|
||||
fssetter-linux
|
||||
DESCRIPTION "Filesystem test creator for Linux"
|
||||
LANGUAGES C)
|
||||
|
||||
set(PLATFORM_SOURCES attr.c sparse.c xattr.c)
|
||||
|
||||
set(EXECUTABLE_NAME "fssetter-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
|
||||
|
||||
add_executable(${EXECUTABLE_NAME} ${PLATFORM_SOURCES})
|
||||
|
||||
target_link_libraries(${EXECUTABLE_NAME} core unix)
|
||||
7
setter/src/unix/CMakeLists.txt
Normal file
7
setter/src/unix/CMakeLists.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
if(NOT "${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(UNIX_SOURCES attr.c deleted.c dirdepth.c filename.c files.c frag.c links.c os.c perms.c rsrcfork.c sparse.c time.c volume.c xattr.c)
|
||||
|
||||
add_library(unix ${UNIX_SOURCES})
|
||||
Reference in New Issue
Block a user