Permalink
Browse files

updated cmakes

  • Loading branch information...
1 parent 7ed3cff commit 7c33a4a0b4b879d37f3fa258684197d8524b52e8 @nova77 nova77 committed Jun 29, 2010
Showing with 26 additions and 5 deletions.
  1. +13 −4 fplib/CMakeLists.txt
  2. +13 −1 lastfmfpclient/CMakeLists.txt
View
@@ -1,4 +1,4 @@
-PROJECT(fplib)
+PROJECT(lastfmfp)
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
@@ -17,11 +17,20 @@ IF(APPLE)
INCLUDE_DIRECTORIES(/opt/local/include/)
ENDIF(APPLE)
-ADD_LIBRARY(fplib STATIC
+ADD_LIBRARY(lastfmfp STATIC
src/Filter
src/FingerprintExtractor
src/OptFFT
)
-INSTALL(TARGETS fplib ARCHIVE DESTINATION lib)
-#INSTALL(DIRECTORY include/fplib DESTINATION include PATTERN ".svn" EXCLUDE)
+INSTALL(TARGETS lastfmfp ARCHIVE DESTINATION lib)
+
+SET(CPACK_GENERATOR "DEB")
+SET(CPACK_PACKAGE_NAME ${CMAKE_PROJECT_NAME})
+SET(CPACK_SET_DESTDIR TRUE)
+SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "norman")
+SET(CPACK_PACKAGE_VERSION_MAJOR "1")
+SET(CPACK_PACKAGE_VERSION_MINOR "6")
+SET(CPACK_PACKAGE_VERSION_PATCH "0")
+
+INCLUDE(CPack)
@@ -26,8 +26,20 @@ ADD_EXECUTABLE( lastfmfpclient
src/Sha256.cpp
src/Sha256File.cpp )
-TARGET_LINK_LIBRARIES(lastfmfpclient fplib fftw3f mad tag curl samplerate)
+TARGET_LINK_LIBRARIES(lastfmfpclient liblastfmfp fftw3f mad tag curl samplerate)
INSTALL(TARGETS lastfmfpclient
RUNTIME DESTINATION bin
COMPONENT lastfmfpclient)
+
+SET(CPACK_GENERATOR "DEB")
+SET(CPACK_PACKAGE_NAME ${CMAKE_PROJECT_NAME})
+SET(CPACK_SET_DESTDIR TRUE)
+SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "norman")
+SET(CPACK_PACKAGE_VERSION_MAJOR "1")
+SET(CPACK_PACKAGE_VERSION_MINOR "6")
+SET(CPACK_PACKAGE_VERSION_PATCH "0")
+
+SET( CPACK_DEBIAN_PACKAGE_DEPENDS "liblastfmfp,libtag1c2a,libtagc0,libcurl3,libmad0,libfftw3-3,libsamplerate0" )
+
+INCLUDE(CPack)

0 comments on commit 7c33a4a

Please sign in to comment.