CMakeLists.txt 756 Bytes
Newer Older
1 2
project(medialibrary)
cmake_minimum_required(VERSION 2.8)
3 4 5
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})

list(APPEND HEADERS_LIST
6 7 8 9 10 11 12 13 14
    include/IAudioTrackInformation.h
    include/ITrackInformation.h
    include/IDescription.h
    include/IVideoTrackInformation.h
    include/IShow.h
    include/IShowEpisode.h
    include/IAlbum.h
    include/IAlbumTrack.h
    include/IFile.h
15 16 17 18 19 20 21 22 23 24
    include/IMediaLibrary.h
)
include_directories("include")

list(APPEND SRC_LIST ${HEADERS_LIST}
    src/MediaLibrary.cpp
    src/SqliteTools.cpp
    src/File.cpp
    src/Album.cpp
    src/Show.cpp
Hugo Beauzée-Luyssen's avatar
Hugo Beauzée-Luyssen committed
25
    src/Label.cpp
26
)
27 28 29 30 31

find_package(Sqlite3 REQUIRED)

add_library(${PROJECT_NAME} ${SRC_LIST})
target_link_libraries(${PROJECT_NAME} ${SQLITE3_LIBRARIES})
32