-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
53 lines (45 loc) · 2.06 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
43
44
45
46
47
48
49
50
51
52
53
################################################################################
#
# gdisofs - fuse module for mounting filesystems from Sega Dreamcast GD-ROMs
# Copyright (C) 2017, 2018, 2022 snickerbockers
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
################################################################################
cmake_minimum_required(VERSION 2.6)
project(gdisofs)
set(gdisofs_VERSION_MAJOR 0)
set(gdisofs_VERSION_MINOR 1)
find_package(PkgConfig REQUIRED)
pkg_search_module(FUSE REQUIRED fuse)
pkg_search_module(GLIB REQUIRED glib-2.0)
configure_file (
"${PROJECT_SOURCE_DIR}/src/config.h.in"
"${PROJECT_BINARY_DIR}/src/config.h"
)
set(CMAKE_C_FLAGS "-D_FILE_OFFSET_BITS=64 -Wall")
set(gdisofs_sources "${PROJECT_SOURCE_DIR}/src/gdi_file.h"
"${PROJECT_SOURCE_DIR}/src/isofs.h"
"${PROJECT_SOURCE_DIR}/linux/iso_fs.h"
"${PROJECT_SOURCE_DIR}/linux/rock.h"
"${PROJECT_SOURCE_DIR}/src/fuseiso.c"
"${PROJECT_SOURCE_DIR}/src/isofs.c"
"${PROJECT_SOURCE_DIR}/src/gdi_file.c")
include_directories("${PROJECT_SOURCE_DIR}"
"${PROJECT_BINARY_DIR}/src/"
"${GLIB_INCLUDE_DIRS}"
"${FUSE_INCLUDE_DIRS}")
add_executable(gdisofs ${gdisofs_sources})
target_link_libraries(gdisofs ${GLIB_LDFLAGS} ${FUSE_LDFLAGS} z)