Including the library with cmake

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Including the library with cmake

Marti Granados  Stefano
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