@@ -43,7 +43,7 @@ if(POLICY CMP0091)
4343 cmake_policy (SET CMP0091 NEW)
4444endif ()
4545
46- project (fdk-aac VERSION 2.0.2 )
46+ project (fdk-aac VERSION 2.0.3 )
4747
4848# Includes
4949
@@ -62,7 +62,7 @@ include(CPack)
6262# Options
6363
6464option (BUILD_SHARED_LIBS "Build shared library" ON )
65- option (BUILD_PROGRAMS "Build aac-enc utility " OFF )
65+ option (BUILD_PROGRAMS "Build extra utilities " OFF )
6666option (FDK_AAC_INSTALL_CMAKE_CONFIG_MODULE "Install CMake package configuration file" ON )
6767option (FDK_AAC_INSTALL_PKGCONFIG_MODULE "Install pkg-config .pc file" ON )
6868
@@ -487,10 +487,11 @@ target_link_libraries(fdk-aac PRIVATE $<$<BOOL:${HAVE_LIBM}>:m>)
487487### Set public headers and shared library version. Version info is critical for Unix-like OSes.
488488set_target_properties (fdk-aac PROPERTIES
489489 PUBLIC_HEADER "${fdk_aacinclude_HEADERS} "
490- VERSION 2.0.2
490+ VERSION 2.0.3
491491 SOVERSION 2
492492 MACHO_COMPATIBILITY_VERSION 3.0.0
493- MACHO_CURRENT_VERSION 3.2.0)
493+ MACHO_CURRENT_VERSION 3.3.0
494+ LINKER_LANGUAGE C)
494495
495496### Some compiler options from Makefile.am
496497if (MSVC )
@@ -585,4 +586,15 @@ if(BUILD_PROGRAMS)
585586 ## Program target installation
586587 install (TARGETS aac-enc RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} )
587588
589+
590+ ## Tool for testing the library
591+ set (test_encode_decode_SOURCES
592+ test -encode-decode.c
593+ wavreader.c
594+ wavreader.h
595+ sha1.c
596+ sha1.h)
597+
598+ add_executable (test -encode-decode ${test_encode_decode_SOURCES} )
599+ target_link_libraries (test -encode-decode PRIVATE fdk-aac)
588600endif ()
0 commit comments