Including the library with cmake

Marti Granados Stefano mastefan at student.ethz.ch
Sun Nov 19 17:57:12 UTC 2017


Hello,

I am trying to include taglib with cmake, but I get this error:

CMake Error at taglib/CMakeLists.txt:359 (set_target_properties):
  set_target_properties called with incorrect number of arguments.

How can I fix it?

This is my cmakelist:

cmake_minimum_required(VERSION 3.8)
project(MakeMusicList)

set(CMAKE_CXX_STANDARD 11)

set(SOURCE_FILES main.cpp )

set(taglib_include ${CMAKE_CURRENT_SOURCE_DIR}/taglib)
add_subdirectory(taglib)
include_directories(${taglib_include})

add_executable(MakeMusicList main.cpp)

target_link_libraries(MakeMusicList taglib)
add_dependencies(MakeMusicList taglib)


And this is from line 359:

set_target_properties(tag PROPERTIES
  VERSION ${TAGLIB_SOVERSION_MAJOR}.${TAGLIB_SOVERSION_MINOR}.${TAGLIB_SOVERSION_PATCH}
  SOVERSION ${TAGLIB_SOVERSION_MAJOR}
  INSTALL_NAME_DIR ${LIB_INSTALL_DIR}
  DEFINE_SYMBOL MAKE_TAGLIB_LIB
  LINK_INTERFACE_LIBRARIES ""
  PUBLIC_HEADER "${tag_HDRS}"
)


I copied the taglib folder into my own projects folder.

Greetings,
Stefano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/taglib-devel/attachments/20171119/13a95d3b/attachment.html>


More information about the taglib-devel mailing list