Clementine-audio-player-Mac.../vlcplugins/CMakeLists.txt

33 lines
780 B
CMake
Raw Normal View History

2010-04-05 04:21:53 +02:00
cmake_minimum_required(VERSION 2.6)
set(CMAKE_C_FLAGS "-Wall")
set(CMAKE_CXX_FLAGS "-Wnon-virtual-dtor -Woverloaded-virtual -Wall")
# Source files
set(CLEMENTINE-SCOPE-SOURCES
clementinescope.cpp
)
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../src")
2010-04-05 17:50:53 +02:00
if (WIN32)
# This gets linked at runtime on unix
set(MAYBE_CLEMENTINE_LIB_LIBRARIES clementine_lib)
endif (WIN32)
2010-04-05 04:21:53 +02:00
add_library(clementine_scope SHARED
${CLEMENTINE-SCOPE-SOURCES}
)
target_link_libraries(clementine_scope
${VLC_PLUGIN_LIBRARIES}
${QT_LIBRARIES}
2010-04-05 17:50:53 +02:00
${MAYBE_CLEMENTINE_LIB_LIBRARIES}
2010-04-05 04:21:53 +02:00
)
2010-04-05 17:50:53 +02:00
if (NOT WIN32)
install(TARGETS clementine_scope
LIBRARY DESTINATION ${VLC_PLUGIN_LIBDIR}/vlc/clementine
)
endif (NOT WIN32)