forked from Gregwar/fatcat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
40 lines (31 loc) · 817 Bytes
/
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
cmake_minimum_required(VERSION 2.8)
project(fatcat)
OPTION(DEFINE_WIN "Compiling windows" OFF)
set(SOURCES
core/FatEntry.cpp
core/FatFilename.cpp
core/FatModule.cpp
core/FatPath.cpp
core/FatSystem.cpp
core/FatDate.cpp
table/FatBackup.cpp
table/FatDiff.cpp
analysis/FatExtract.cpp
analysis/FatFix.cpp
analysis/FatChain.cpp
analysis/FatChains.cpp
analysis/FatSearch.cpp
analysis/FatWalk.cpp
xgetopt/xgetopt.cpp
xgetopt/stdafx.cpp
xgetopt/argcargv.cpp
)
foreach(SOURCE ${SOURCES})
set(ALL_SOURCES ${ALL_SOURCES} src/${SOURCE})
endforeach()
IF(DEFINE_WIN)
add_definitions(-D__WIN__)
ENDIF(DEFINE_WIN)
include_directories("${CMAKE_SOURCE_DIR}/src")
add_executable(fatcat "src/fatcat.cpp" ${ALL_SOURCES})
install(TARGETS fatcat DESTINATION bin)