]> FriiDump Source - friidump.git/blob - src/CMakeLists.txt
PFES-REPO-README-001: Refresh canonical documentation
[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         ${additional_sources}
28 )
29
30 # Link the executable to the Hello library.
31 target_link_libraries (
32         friidump
33         
34         friidumplib
35 )
36
37 if (WIN32)
38         # We only want a version number on Windows (Is it any use?)
39         set_target_properties (friidump PROPERTIES VERSION 0.2)
40         
41         install(
42                 TARGETS friidump
43                 RUNTIME DESTINATION /
44         )
45 else (WIN32)
46         install(
47                 TARGETS friidump
48                 RUNTIME DESTINATION bin
49         )
50 endif (WIN32)