46 lines
945 B
CMake
46 lines
945 B
CMake
|
include_directories(${PROTOBUF_INCLUDE_DIRS})
|
||
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||
|
include_directories(${CMAKE_CURRENT_BINARY_DIR}/../common)
|
||
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../common)
|
||
|
include_directories(${CMAKE_SOURCE_DIR}/src)
|
||
|
|
||
|
link_directories(${SPOTIFY_LIBRARY_DIRS})
|
||
|
|
||
|
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
|
||
|
|
||
|
set(SOURCES
|
||
|
fmpsparser.cpp
|
||
|
main.cpp
|
||
|
tagreaderworker.cpp
|
||
|
)
|
||
|
|
||
|
set(HEADERS
|
||
|
)
|
||
|
|
||
|
qt4_wrap_cpp(MOC ${HEADERS})
|
||
|
|
||
|
add_executable(clementine-tagreader
|
||
|
${SOURCES}
|
||
|
${MOC}
|
||
|
)
|
||
|
|
||
|
target_link_libraries(clementine-tagreader
|
||
|
${TAGLIB_LIBRARIES}
|
||
|
${QT_QTCORE_LIBRARY}
|
||
|
${QT_QTNETWORK_LIBRARY}
|
||
|
clementine-tagreader-common
|
||
|
)
|
||
|
|
||
|
if(APPLE)
|
||
|
target_link_libraries(clementine-tagreader
|
||
|
/System/Library/Frameworks/Foundation.framework
|
||
|
)
|
||
|
endif(APPLE)
|
||
|
|
||
|
if(NOT APPLE)
|
||
|
# macdeploy.py takes care of this on mac
|
||
|
install(TARGETS clementine-tagreader
|
||
|
RUNTIME DESTINATION bin
|
||
|
)
|
||
|
endif(NOT APPLE)
|