Removed 3rdparty CMakeLists.txt. Just include this as part of libmusikcore.

This commit is contained in:
Casey Langen 2016-05-30 11:49:02 -07:00
parent 3da84981e1
commit c812739d28
10 changed files with 11 additions and 39 deletions

View File

@ -39,8 +39,6 @@ set (musikbox_LINK_LIBS
${linux_LINK_LIBS}
${BOOST_LINK_LIBS}
dl
sqlite3
md5
)
include_directories (
@ -50,7 +48,6 @@ include_directories (
"${musikbox_SOURCE_DIR}/src/3rdparty/include"
)
add_subdirectory(src/3rdparty)
add_subdirectory(src/core)
add_subdirectory(src/musikbox)
add_subdirectory(src/contrib/taglib_plugin)

View File

@ -1,28 +0,0 @@
if (UNIX AND NOT WIN32)
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
add_definitions(-fPIC)
endif (CMAKE_SIZEOF_VOID_P MATCHES "8")
endif (UNIX AND NOT WIN32)
set (3rdParty_MD5_SOURCES
include/md5/md5.h
src/md5/md5.c
)
set (3rdParty_SQLITE_SOURCES
include/sqlite/sqlite3.h
include/sqlite/sqlite3ext.h
src/sqlite/sqlite3.c
)
include_directories (include/md5)
add_library(md5 STATIC ${3rdParty_MD5_SOURCES})
include_directories (include/sqlite)
add_library(sqlite3 STATIC ${3rdParty_SQLITE_SOURCES})
if (WIN32)
add_definitions(
-DHAVE_MEMMOVE
)
endif (WIN32)

View File

@ -26,6 +26,8 @@ set(CORE_SOURCES
./support/Preferences.cpp
./support/ThreadHelper.cpp
./support/Version.cpp
../3rdparty/src/md5/md5.c
../3rdparty/src/sqlite/sqlite3.c
)
set (CORE_HEADERS
@ -81,10 +83,11 @@ include_directories(
.
..
../3rdparty/include
../3rdparty/include/md5
../3rdparty/include/sqlite
)
add_definitions(
-D_CRT_SECURE_NO_DEPRECATE
-D_DEBUG
)

View File

@ -9,7 +9,7 @@ namespace musik {
namespace box {
class ResourcesWindow :
public cursespp::Window
#if true || ( __clang_major__==7 && __clang_minor__==3 )
#if (__clang_major__ == 7 && __clang_minor__ == 3)
, public std::enable_shared_from_this<ResourcesWindow>
#endif
{