2009-05-06 09:12:12 +00:00
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
project( musikCube )
|
|
|
|
|
2009-07-18 11:50:49 +00:00
|
|
|
set ( musikCube_VERSION_MAJOR 2)
|
|
|
|
set ( musikCube_VERSION_MINOR 0)
|
|
|
|
|
|
|
|
|
|
|
|
set (BOOST_LIBS
|
|
|
|
system
|
|
|
|
date_time
|
|
|
|
filesystem
|
|
|
|
iostreams
|
|
|
|
thread
|
|
|
|
regex
|
|
|
|
)
|
|
|
|
|
|
|
|
set (Boost_ADDITIONAL_VERSIONS "1.37.0" )
|
|
|
|
if(WIN32 AND NOT UNIX)
|
|
|
|
find_package(Boost 1.36.0 COMPONENTS ${BOOST_LIBS} )
|
|
|
|
if (Boost_FOUND)
|
|
|
|
add_definitions (-DHAVE_BOOST)
|
2011-02-07 15:03:09 +00:00
|
|
|
set (BOOST_LINK_LIBS
|
|
|
|
${Boost_LIBRARIES})
|
|
|
|
else (Boost_FOUND)
|
|
|
|
set (BOOST_LINK_LIBS
|
|
|
|
boost_system
|
|
|
|
boost_iostreams
|
|
|
|
boost_filesystem
|
|
|
|
boost_thread
|
|
|
|
boost_regex
|
|
|
|
boost_date_time
|
|
|
|
)
|
|
|
|
include_directories ("${musikCube_SOURCE_DIR}/src/3rdparty/boost")
|
2009-07-18 11:50:49 +00:00
|
|
|
endif (Boost_FOUND)
|
|
|
|
else(WIN32 AND NOT UNIX)
|
|
|
|
find_package(Boost 1.36.0 REQUIRED ${BOOST_LIBS})
|
2011-02-06 23:12:29 +00:00
|
|
|
if(Boost_FOUND)
|
|
|
|
add_definitions (-DHAVE_BOOST
|
|
|
|
-D_FILE_OFFSET_BITS=64)
|
|
|
|
set (BOOST_LINK_LIBS
|
|
|
|
${Boost_LIBRARIES})
|
|
|
|
# message(STATUS "Libs: " ${BOOST_LINK_LIBS})
|
|
|
|
# message(STATUS "Includes: " ${Boost_INCLUDE_DIRS})
|
|
|
|
else(Boost_FOUND)
|
|
|
|
set (BOOST_LINK_LIBS
|
|
|
|
boost_system
|
|
|
|
boost_iostreams
|
|
|
|
boost_filesystem
|
|
|
|
boost_thread
|
|
|
|
boost_regex
|
|
|
|
boost_date_time
|
|
|
|
)
|
2011-02-07 15:03:09 +00:00
|
|
|
include_directories ("${musikCube_SOURCE_DIR}/src/3rdparty/boost")
|
2011-02-06 23:12:29 +00:00
|
|
|
endif(Boost_FOUND)
|
2009-07-18 11:50:49 +00:00
|
|
|
find_package(Qt4 REQUIRED)
|
|
|
|
#add_definitions(${QT_DEFINITIONS})
|
|
|
|
#include_directories(${QT_INCLUDE_DIR})
|
|
|
|
set (linux_LINK_LIBS
|
|
|
|
dl
|
|
|
|
expat
|
|
|
|
)
|
2011-01-24 07:48:04 +00:00
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}
|
2009-07-18 11:50:49 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Modules )
|
2011-02-03 17:41:20 +00:00
|
|
|
#include(UseDoxygen)
|
2011-01-24 07:48:04 +00:00
|
|
|
set(DOXYFILE_OUTPUT_DIRECTORY docs)
|
|
|
|
endif(WIN32 AND NOT UNIX)
|
2009-07-18 11:50:49 +00:00
|
|
|
|
2009-05-06 09:12:12 +00:00
|
|
|
SET (CMAKE_BUILD_TYPE DEBUG)
|
|
|
|
set (LIBRARY_OUTPUT_PATH ${musikCube_SOURCE_DIR}/lib)
|
2009-07-18 11:50:49 +00:00
|
|
|
set (EXECUTABLE_OUTPUT_PATH ${musikCube_SOURCE_DIR}/bin)
|
|
|
|
|
|
|
|
link_directories (${musikCube_SOURCE_DIR}/lib)
|
|
|
|
|
|
|
|
set (musikCube_LINK_LIBS
|
|
|
|
${linux_LINK_LIBS}
|
2011-02-06 23:12:29 +00:00
|
|
|
${BOOST_LINK_LIBS}
|
2009-07-18 11:50:49 +00:00
|
|
|
sqlite3
|
|
|
|
md5
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories ( "/usr/include/taglib"
|
|
|
|
"${musikCube_SOURCE_DIR}/src"
|
|
|
|
"${musikCube_SOURCE_DIR}/src/core"
|
|
|
|
"${musikCube_SOURCE_DIR}/src/3rdparty/include")
|
2009-05-06 09:12:12 +00:00
|
|
|
|
2009-07-18 11:50:49 +00:00
|
|
|
add_subdirectory(src/3rdparty)
|
2009-05-06 09:12:12 +00:00
|
|
|
add_subdirectory(src/core)
|
2009-07-18 11:50:49 +00:00
|
|
|
add_subdirectory(src/contrib)
|
|
|
|
#add_subdirectory(src/server)
|
2011-01-27 16:51:14 +00:00
|
|
|
add_subdirectory(src/square)
|
2009-07-18 11:50:49 +00:00
|
|
|
#add_subdirectory(src/cube)
|