1 # Create a library called "Hello" which includes the source file "hello.cxx".
2 # The extension is already found. Any number of sources could be listed here.
25 nintendo_disc_header.h
26 nintendo_disc_header.c
42 xbox_xgd1_raw_id_probe.c
43 xbox_ref/xbox_ref_log.c
47 target_sources (friidumplib PRIVATE
51 xbox_ref/xbox_ref_sha1.c
53 target_include_directories (friidumplib PRIVATE
54 ${FriiDump_SOURCE_DIR}/libmultihash
55 ${CMAKE_CURRENT_SOURCE_DIR}/xbox_ref
59 set_target_properties (friidumplib PROPERTIES OUTPUT_NAME "friidump")
62 ${FriiDump_SOURCE_DIR}/libmultihash
65 # Make sure the linker can find the Hello library once it is built.
67 ${FriiDump_BINARY_DIR}/libmultihash
70 # Link the executable to the Hello library.
71 target_link_libraries (
77 # Before making a release, the LTVERSION string should be modified.
78 # The string is of the form CURRENT:REVISION:AGE.
81 # The most recent interface number that this library implements.
84 # The implementation number that this library implements.
87 # The difference between the newest and oldest interfaces that this
88 # library implements. In other works, the library implements all the
89 # interface numbers in the range from number 'CURRENT - AGE' to
94 # - If interfaces have been changed or added, but binary compatibility has
95 # been preserved, change to C+1:0:A+1
97 # - If binary compatibility has been broken (eg removed or changed
98 # interfaces) change to C+1:0:0
100 # - If the interface is the same as the previous version, change to C:R+1:A
102 #set_target_properties (friidumplib PROPERTIES SOVERSION 1.0.0)
105 # Windows stuff to correctly build DLL or static library
106 #get_target_property (libfriidump_type friidumplib TYPE)
108 if (libfriidump_type STREQUAL "SHARED")
109 # MESSAGE ("Building libfriidump DLL")
110 ADD_DEFINITIONS (-DFRIIDUMPLIB_BUILD_DLL)
111 set_target_properties (friidumplib PROPERTIES DEFINE_SYMBOL FRIIDUMPLIB_EXPORTS)
115 RUNTIME DESTINATION /
116 #ARCHIVE DESTINATION lib
118 endif (libfriidump_type STREQUAL "SHARED")
120 # Install stuff, only if a shared library is being built
121 if (libfriidump_type STREQUAL "SHARED")
124 LIBRARY DESTINATION lib
125 ARCHIVE DESTINATION lib/static
127 endif (libfriidump_type STREQUAL "SHARED")