-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
42 lines (31 loc) · 1.14 KB
/
CMakeLists.txt
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
35
36
37
38
39
40
41
42
cmake_minimum_required(VERSION 3.5)
project(raidfuse C CXX)
set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_CXX_STANDARD 11)
#set(CMAKE_CXX_STANDARD_REQUIRED ON)
#set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
find_package(FUSE 2.9 REQUIRED)
set(HEADER
${CMAKE_CURRENT_SOURCE_DIR}/inc/${PROJECT_NAME}/guid.hpp
${CMAKE_CURRENT_SOURCE_DIR}/inc/${PROJECT_NAME}/interface.hpp
${CMAKE_CURRENT_SOURCE_DIR}/inc/${PROJECT_NAME}/mbr.hpp
${CMAKE_CURRENT_SOURCE_DIR}/inc/${PROJECT_NAME}/gpt.hpp
${CMAKE_CURRENT_SOURCE_DIR}/inc/${PROJECT_NAME}/partition.hpp
${CMAKE_CURRENT_SOURCE_DIR}/inc/${PROJECT_NAME}/drive.hpp
${CMAKE_CURRENT_SOURCE_DIR}/inc/${PROJECT_NAME}/raid.hpp
)
set(SOURCE
${CMAKE_CURRENT_SOURCE_DIR}/src/guid.cpp
# ${CMAKE_CURRENT_SOURCE_DIR}/src/fuse.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp
)
if(FUSE_FOUND)
add_definitions(${FUSE_DEFINITIONS})
include_directories(${FUSE_INCLUDE_DIRS})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/inc)
add_executable(${PROJECT_NAME} ${HEADER} ${SOURCE})
target_link_libraries(${PROJECT_NAME} ${FUSE_LIBRARIES})
else()
message(FATAL_ERROR "Fuse not found!")
endif()