Skip to content

Commit

Permalink
automake->cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
lipnitsk committed Oct 26, 2015
1 parent fcb6c3f commit cbbde79
Show file tree
Hide file tree
Showing 19 changed files with 64 additions and 135 deletions.
53 changes: 53 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
SET(PACKAGE libcue)
SET(PACKAGE_NAME libcue)
SET(PACKAGE_VERSION 2.0.0)

CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR)

PROJECT(libcue)

SET(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
ADD_DEFINITIONS(-DPACKAGE_VERSION="${PACKAGE_VERSION}")
ADD_DEFINITIONS(-DPACKAGE_STRING="${PACKAGE_STRING}")

SET (CUE_SOURCES
cd.c
cdtext.c
rem.c
time.c)

CONFIGURE_FILE(libcue.pc.in libcue.pc @ONLY)
INSTALL(FILES ${CMAKE_BINARY_DIR}/libcue.pc
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)

INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}) # for generated files

FIND_PACKAGE(BISON)
FIND_PACKAGE(FLEX)
BISON_TARGET(CueParser
cue_parser.y
${CMAKE_BINARY_DIR}/cue_parser.c)
FLEX_TARGET(CueScanner
cue_scanner.l
${CMAKE_BINARY_DIR}/cue_scanner.c)
ADD_FLEX_BISON_DEPENDENCY(CueScanner CueParser)

ADD_LIBRARY(cue SHARED ${CUE_SOURCES}
${BISON_CueParser_OUTPUTS}
${FLEX_CueScanner_OUTPUTS})

SET_TARGET_PROPERTIES (cue
PROPERTIES VERSION ${PACKAGE_VERSION})

INSTALL(TARGETS cue
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/ DESTINATION include/libcue
FILES_MATCHING PATTERN "*.h")

SET(CPACK_PACKAGE_VERSION "${PACKAGE_VERSION}")
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "${PACKAGE_NAME}-${PACKAGE_VERSION}")
SET(CPACK_SOURCE_GENERATOR "TXZ")
SET(CPACK_SOURCE_IGNORE_FILES ".*~;\\\\.swp$;/\\\\.git/;build/;t/")
INCLUDE(CPack)
9 changes: 0 additions & 9 deletions Makefile.am

This file was deleted.

19 changes: 0 additions & 19 deletions autogen.sh

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions src/libcue/cd.h → cd.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#define MAXTRACK 99 /* Red Book track limit */
#define MAXINDEX 99 /* Red Book index limit */
#define PARSER_BUFFER 1024 /* Parser buffer size */

/*
* disc modes
Expand Down
File renamed without changes.
File renamed without changes.
62 changes: 0 additions & 62 deletions configure.ac

This file was deleted.

2 changes: 0 additions & 2 deletions src/libcue/cue_parser.y → cue_parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#include <stdio.h>
#include <string.h>

#include "config.h"

#include "cd.h"
#include "time.h"

Expand Down
2 changes: 0 additions & 2 deletions src/libcue/cue_scanner.l → cue_scanner.l
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
#include <stdlib.h>
#include <string.h>

#include "config.h"

#include "cd.h"
#include "cue_parser.h"

Expand Down
File renamed without changes.
10 changes: 10 additions & 0 deletions libcue.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include/@PROJECT_NAME@

Name: @PROJECT_NAME@
Description: Cuesheet parser library
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -lcue
Cflags: -I${includedir}
File renamed without changes.
File renamed without changes.
31 changes: 0 additions & 31 deletions src/libcue/Makefile.am

This file was deleted.

10 changes: 0 additions & 10 deletions src/libcue/libcue.pc.in

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit cbbde79

Please sign in to comment.