summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormschroffel <mschroffel@cinecert.com>2016-05-06 21:44:14 +0000
committermschroffel <>2016-05-06 21:44:14 +0000
commitcc05011a20424c6b855995b5965782582ca21c42 (patch)
tree249f5f359e98dc4e7e8fe3b412cf247cef172b5b /src
parentd5cac9085e6da19bdfc8e76235a460da0e6e5f7b (diff)
fixed the make file to include new location of CMakeLists.txt (src)
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt51
-rw-r--r--src/Makefile.am4
2 files changed, 53 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..8ccc914
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,51 @@
+cmake_minimum_required(VERSION 2.8.12)
+
+project(asdcplibmod)
+
+# The version number.
+set(VERSION_MAJOR 2)
+set(VERSION_MINOR 5)
+set(VERSION_PATCH 13)
+set(VERSION_STRING ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
+set_property(GLOBAL PROPERTY USE_FOLDERS ON)
+set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER "Default Targets")
+# use, i.e. don't skip the full RPATH for the build tree
+set(CMAKE_SKIP_BUILD_RPATH OFF)
+# when building, don't use the install RPATH already
+# (but later on when installing)
+set(CMAKE_BUILD_WITH_INSTALL_RPATH OFF)
+set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
+# add the automatically determined parts of the RPATH
+# which point to directories outside the build tree to the install RPATH
+set(CMAKE_INSTALL_RPATH_USE_LINK_PATH ON)
+# the RPATH to be used when installing, but only if it's not a system directory
+list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib" isSystemDir)
+if("${isSystemDir}" STREQUAL "-1")
+ set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
+endif("${isSystemDir}" STREQUAL "-1")
+
+# Configure a header file to pass some of the CMake settings to the source code.
+configure_file("${PROJECT_SOURCE_DIR}/src/info.in" "${PROJECT_BINARY_DIR}/src/info.h")
+
+# Add the binary tree to the search path for include files so that we will find info.h.
+include_directories("${PROJECT_BINARY_DIR}/src")
+add_subdirectory(src)
+
+set(CPACK_GENERATOR ZIP)
+if(UNIX)
+ set(CPACK_GENERATOR ${CPACK_GENERATOR};STGZ;TGZ)
+endif(UNIX)
+if(UNIX AND NOT APPLE)
+ set(CPACK_GENERATOR ${CPACK_GENERATOR};DEB;RPM)
+endif(UNIX AND NOT APPLE)
+set(CPACK_PACKAGE_NAME ${PROJECT_NAME})
+set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Modified asdcp lib. Can generate MXF resources.")
+set(CPACK_PACKAGE_VENDOR "HSRM")
+set(CPACK_PACKAGE_CONTACT "bjoern.stresing@gmx.de")
+set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
+set(CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR})
+set(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR})
+set(CPACK_PACKAGE_VERSION_PATCH ${VERSION_PATCH})
+set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
+set(CPACK_PACKAGE_INSTALL_DIRECTORY ${PROJECT_NAME}{VERSION_MAJOR}.${VERSION_MINOR})
+include(CPack)
diff --git a/src/Makefile.am b/src/Makefile.am
index f903eb9..b91aba2 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -119,7 +119,7 @@ libasdcp_la_SOURCES = MPEG2_Parser.cpp MPEG.cpp JP2K_Codestream_Parser.cpp \
Wav.h WavFileWriter.h MXF.h Metadata.h \
JP2K.h AS_DCP.h AS_DCP_internal.h KLV.h MPEG.h MXFTypes.h MDD.h \
PCMParserList.h S12MTimecode.h MDD.cpp \
- AS_DCP_ATMOS.cpp AS_DCP_DCData.cpp info.in\
+ AS_DCP_ATMOS.cpp AS_DCP_DCData.cpp info.in \
DCData_ByteStream_Parser.cpp DCData_Sequence_Parser.cpp \
AtmosSyncChannel_Generator.cpp AtmosSyncChannel_Generator.h \
AtmosSyncChannel_Mixer.cpp AtmosSyncChannel_Mixer.h \
@@ -337,7 +337,7 @@ TESTS_ENVIRONMENT = BUILD_DIR="." TEST_FILES=../tests TEST_FILE_PREFIX=DCPd1-M1
JP2K_PREFIX=MM_2k_XYZ_
# files to include in the distribution that automake doesn't automatically include
-EXTRA_DIST = fips-186-test-harness.pl $(TESTS) ../CMakeLists.txt
+EXTRA_DIST = fips-186-test-harness.pl $(TESTS) CMakeLists.txt
if !FREEDIST
if DEV_HEADERS
EXTRA_DIST += $(nodist_libasdcp_la_SOURCES) $(nodist_tt_xform_SOURCES)