-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
34 lines (27 loc) · 789 Bytes
/
CMakeLists.txt
File metadata and controls
34 lines (27 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
cmake_minimum_required(VERSION 3.10)
# Set the project name
project(inodeyou-cpp)
# Set the C++ standard
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)
# Include directories
include_directories(src/fs src/tsk src/utils)
# Source files
set(SOURCES
src/main.cpp
src/fs/fs_walk_path.cpp
src/fs/populate_fs_inodes.cpp
src/tsk/tsk_walk_path.cpp
src/tsk/populate_tsk_inodes.cpp
src/utils/common.cpp
src/utils/inode_utils.cpp
)
# Find and link the Sleuth Kit library
find_library(TSK_LIB tsk REQUIRED)
if (NOT TSK_LIB)
message(FATAL_ERROR "Sleuth Kit library not found. Please install libtsk-dev.")
endif()
# Create the executable
add_executable(inodeyou ${SOURCES})
# Link the Sleuth Kit library
target_link_libraries(inodeyou ${TSK_LIB})