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
|
include_directories (
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${GLIB_INCLUDEDIR}
${GLIB_INCLUDE_DIRS}
${GOBJECT_INCLUDEDIR}
${GOBJECT_INCLUDE_DIRS}
${SNDFILE_INCLUDEDIR}
${SNDFILE_INCLUDE_DIRS}
)
if( WIN32 )
# disable deprecation warnings
add_definitions ( -D_CRT_SECURE_NO_WARNINGS )
endif( WIN32 )
link_directories (
${GLIB_LIBDIR}
${GLIB_LIBRARY_DIRS}
${GOBJECT_LIBDIR}
${GOBJECT_LIBRARY_DIRS}
${SNDFILE_LIBDIR}
${SNDFILE_LIBRARY_DIRS}
)
add_executable ( riff_dump riff_dump.c )
add_dependencies( riff_dump libinstpatch )
target_link_libraries( riff_dump libinstpatch )
|