]> FriiDump Source - friidump.git/blob - src/CMakeLists.txt
FriiDump 0.5.3.10: add Redump evidence and optimize Xbox flow
[friidump.git] / src / CMakeLists.txt
1 # Make sure the compiler can find include files from our Hello library.
2 include_directories (
3         ${FriiDump_SOURCE_DIR}/libfriidump
4 )
5
6 # Make sure the linker can find the Hello library once it is built.
7 link_directories (
8         ${FriiDump_BINARY_DIR}/libfriidump
9 )
10
11 # Add executable called "helloDemo" that is built from the source files
12 # "demo.cxx" and "demo_b.cxx".  The extensions are automatically found.
13 if (WIN32)
14         set(
15                 additional_sources
16         
17                 getopt-win32.h
18                 getopt-win32.c
19                 getopt_long-win32.c
20         )
21 endif (WIN32)
22
23 add_executable (
24         friidump
25
26         friidump.c
27         redump_dat.c
28         redump_dat.h
29         ${additional_sources}
30 )
31
32 # Link the executable to the Hello library.
33 target_link_libraries (
34         friidump
35         
36         friidumplib
37 )
38
39 if (WIN32)
40         # We only want a version number on Windows (Is it any use?)
41         set_target_properties (friidump PROPERTIES VERSION 0.2)
42         
43         install(
44                 TARGETS friidump
45                 RUNTIME DESTINATION /
46         )
47 else (WIN32)
48         install(
49                 TARGETS friidump
50                 RUNTIME DESTINATION bin
51         )
52 endif (WIN32)