-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
72 lines (55 loc) · 1.84 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
enable_testing()
cmake_minimum_required(VERSION 2.6.2)
project(Y60)
set(VERSION_MAJOR 1)
set(VERSION_MINOR 0)
set(VERSION_PATCH 9)
set(VERSION_STRING ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
#set(CMAKE_OSX_ARCHITECTURES "i386")
list(INSERT CMAKE_PREFIX_PATH 0 ${CMAKE_BINARY_DIR})
find_package(AcMake)
find_package(ASL)
# declare our packaging solution
ac_begin_solution(
Y60
VERSION_MAJOR ${VERSION_MAJOR} VERSION_MINOR ${VERSION_MINOR} VERSION_PATCH ${VERSION_PATCH}
DESCRIPTION "Y60 Media Engine"
VENDOR "ART+COM AG"
CONTACT "info@artcom.de"
DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/DESCRIPTION.txt"
LICENSE_FILE "${CMAKE_SOURCE_DIR}/LICENSE.txt"
PACKAGE_ICON "${CMAKE_SOURCE_DIR}/installer/windows/NSIS-Header.bmp"
INSTALLER_ICON "${CMAKE_SOURCE_DIR}/installer/windows/shopping_bag.ico"
UNINSTALLER_ICON "${CMAKE_SOURCE_DIR}/installer/windows/shopping_bag_grey.ico"
CREATE_SHORTCUTS FALSE
)
# declare cpack components
set(RUNTIME_COMPONENT Y60_runtime)
set(DEVELOPMENT_COMPONENT Y60_development)
cpack_add_component( ${RUNTIME_COMPONENT}
DISPLAY_NAME "Y60 Runtime"
DESCRIPTION "Y60 runtime libraries" REQUIRED)
cpack_add_component( ${DEVELOPMENT_COMPONENT}
DISPLAY_NAME "Y60 Development"
DESCRIPTION "Y60 header files and import libraries")
# define debian packages
if(ACMAKE_DEBIAN)
ac_debian_define_source(
Y60
SECTION graphics
PRIORITY optional
MAINTAINER
"<info@artcom.de>"
HOMEPAGE
"https://github.com/artcom/y60"
PROVIDE_DEBUG_PACKAGE
)
endif(ACMAKE_DEBIAN)
# add our packages
add_subdirectory(netsrc)
add_subdirectory(y60)
ac_end_solution(Y60)
if(ACMAKE_DEBIAN)
message("FINALIZING DEBIAN PACKAGES")
ac_debian_finalize()
endif(ACMAKE_DEBIAN)