mirror of
https://github.com/taglib/taglib.git
synced 2025-07-14 11:04:17 -04:00
Add cmake support
All compile need to test now git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@586714 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
99
examples/CMakeLists.txt
Normal file
99
examples/CMakeLists.txt
Normal file
@ -0,0 +1,99 @@
|
||||
INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/taglib ${CMAKE_SOURCE_DIR}/taglib/toolkit ${CMAKE_SOURCE_DIR}/taglib/mpeg ${CMAKE_SOURCE_DIR}/taglib/mpeg/id3v1 ${CMAKE_SOURCE_DIR}/taglib/mpeg/id3v2 ${CMAKE_SOURCE_DIR}/taglib/bindings/c )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
SET(tagreader_SRCS
|
||||
tagreader.cpp
|
||||
)
|
||||
|
||||
|
||||
ADD_EXECUTABLE(tagreader ${tagreader_SRCS})
|
||||
|
||||
TARGET_LINK_LIBRARIES(tagreader ${QT_AND_KDECORE_LIBS} )
|
||||
|
||||
INSTALL_TARGETS(/bin tagreader )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
SET(tagreader_c_SRCS
|
||||
tagreader_c.c
|
||||
)
|
||||
|
||||
|
||||
ADD_EXECUTABLE(tagreader_c ${tagreader_c_SRCS})
|
||||
|
||||
TARGET_LINK_LIBRARIES(tagreader_c ${QT_AND_KDECORE_LIBS} tag_c )
|
||||
|
||||
INSTALL_TARGETS(/bin tagreader_c )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
SET(tagwriter_SRCS
|
||||
tagwriter.cpp
|
||||
)
|
||||
|
||||
|
||||
ADD_EXECUTABLE(tagwriter ${tagwriter_SRCS})
|
||||
|
||||
TARGET_LINK_LIBRARIES(tagwriter ${QT_AND_KDECORE_LIBS} )
|
||||
|
||||
INSTALL_TARGETS(/bin tagwriter )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
SET(framelist_SRCS
|
||||
framelist.cpp
|
||||
)
|
||||
|
||||
|
||||
ADD_EXECUTABLE(framelist ${framelist_SRCS})
|
||||
|
||||
TARGET_LINK_LIBRARIES(framelist ${QT_AND_KDECORE_LIBS} )
|
||||
|
||||
INSTALL_TARGETS(/bin framelist )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
SET(strip-id3v1_SRCS
|
||||
dummy.cpp
|
||||
)
|
||||
|
||||
KDE3_AUTOMOC(${strip-id3v1_SRCS})
|
||||
|
||||
FILE(WRITE dummy.cpp "//autogenerated file by cmake\n")
|
||||
ADD_EXECUTABLE(strip-id3v1 ${strip-id3v1_SRCS})
|
||||
|
||||
TARGET_LINK_LIBRARIES(strip-id3v1 ${QT_AND_KDECORE_LIBS} )
|
||||
|
||||
INSTALL_TARGETS(/bin strip-id3v1 )
|
||||
|
||||
|
||||
########### install files ###############
|
||||
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
#bin_PROGRAMS = tagreader tagreader_c tagwriter framelist strip-id3v1
|
||||
#tagreader_SOURCES = tagreader.cpp
|
||||
#tagreader_c_SOURCES = tagreader_c.c
|
||||
#tagwriter_SOURCES = tagwriter.cpp
|
||||
#framelist_SOURCES = framelist.cpp
|
||||
#strip_id3v1_SOURCES = strip-id3v1.cpp
|
||||
#
|
||||
#INCLUDES = \
|
||||
# -I$(top_srcdir)/taglib \
|
||||
# -I$(top_srcdir)/taglib/toolkit \
|
||||
# -I$(top_srcdir)/taglib/mpeg \
|
||||
# -I$(top_srcdir)/taglib/mpeg/id3v1 \
|
||||
# -I$(top_srcdir)/taglib/mpeg/id3v2 \
|
||||
# -I$(top_srcdir)/taglib/bindings/c
|
||||
#
|
||||
#LDADD = ../libtag.la
|
||||
#tagreader_c_LDADD = ../bindings/c/libtag_c.la
|
Reference in New Issue
Block a user