-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
45 lines (37 loc) · 1.12 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
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
INCLUDE(CheckIncludeFileCXX)
INCLUDE(CheckSymbolExists)
check_include_file_cxx(unistd.h HAVE_UNISTD_H)
check_include_file_cxx(sys/time.h HAVE_SYS_TIME_H)
check_include_file_cxx(sys/fcntl.h HAVE_SYS_FCNTL_H)
check_include_file_cxx(sys/mman.h HAVE_SYS_MMAN_H)
check_symbol_exists(madvise sys/mman.h HAVE_MADVISE)
SET(OBJSOURCES Main.cpp
File.cpp
Time.cpp
BMPRipper.cpp
DDSRipper.cpp
GIFRipper.cpp
ICORipper.cpp
IFFRipper.cpp
JPEGRipper.cpp
MIDIRipper.cpp
MODRipper.cpp
MPEGRipper.cpp
PatternMatcher.cpp
PDFRipper.cpp
PNGRipper.cpp
PVRRipper.cpp
RIFFRipper.cpp
RTFRipper.cpp
VOCRipper.cpp
XMRipper.cpp)
ADD_EXECUTABLE(ripper ${OBJSOURCES})
SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "RIPPED_*")
IF(NOT MSVC)
SET_TARGET_PROPERTIES(ripper PROPERTIES COMPILE_FLAGS "-Wall -Wabi -Woverloaded-virtual -Wextra -Werror -g -pipe")
ELSE(NOT MSVC)
SET_TARGET_PROPERTIES(ripper PROPERTIES COMPILE_FLAGS "/wd4996")
ENDIF(NOT MSVC)
CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/Config.h.in" "${PROJECT_BINARY_DIR}/Config.h")
INCLUDE_DIRECTORIES("${PROJECT_BINARY_DIR}")