source: pacpusframework/branches/2.0-beta1/src/DBITEPlayer/CMakeLists.txt@ 89

Last change on this file since 89 was 89, checked in by morasjul, 11 years ago

PACPUS 2.0 Beta deployed in new branch

Major changes:
-Add communication interface between components
-Add examples for communications interface (TestComponents)
-Move to Qt5 support

  • Property svn:executable set to *
File size: 2.6 KB
Line 
1#################################################
2# ___________ ____ ______ __ __ _____ #
3# \____ \__ \ _/ ___\\____ \| | \/ ___/ #
4# | |_> > __ \\ \___| |_> > | /\___ \ #
5# | __(____ /\___ > __/|____//____ > #
6# |__| \/ \/|__| \/ #
7# #
8#################################################
9project(DBITEPlayer)
10
11# ========================================
12# Configure qt4
13# ========================================
14#if(QT4_FOUND)
15# set(QT_USE_QTXML true)
16# include(${QT_USE_FILE})
17#else()
18# message(ERROR "Qt4 needed")
19#endif(QT4_FOUND)
20
21# ========================================
22# Compiler definitions
23# ========================================
24add_definitions(
25 ${QT_DEFINITIONS}
26)
27
28# ========================================
29# Include directories
30# ========================================
31include_directories(
32 ${CMAKE_BINARY_DIR}/DBITEPlayer
33 ${QT_INCLUDE_DIR}
34)
35
36# ========================================
37# List of sources
38# ========================================
39set(
40 PROJECT_SRCS
41 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/cstdint.h
42 ${PACPUS_INCLUDE_DIR}/Pacpus//kernel/ComponentBase.h
43 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/ComponentFactory.h
44 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/ComponentFactoryBase.h
45 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/ComponentManager.h
46 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/Log.h
47 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/pacpus.h
48 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/road_time.h
49 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/XmlComponentConfig.h
50 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/XmlConfigFile.h
51 ./ComponentBase.cpp
52 ./ComponentFactoryBase.cpp
53 ./ComponentManager.cpp
54 ./Log.cpp
55 ./XmlComponentConfig.cpp
56 ./XmlConfigFile.cpp
57)
58
59# ========================================
60# Build an executable
61# ========================================
62pacpus_add_executable(
63 ${PROJECT_NAME}
64 ./src/main.cpp
65)
66
67# ========================================
68# Libraries & Dependencies
69# ========================================
70# All the platform
71target_link_libraries(
72 ${PROJECT_NAME}
73 ${QT_LIBRARIES}
74 dbiteplayerlib
75 FileLib
76 PacpusLib
77 PacpusTools
78)
79# Windows
80if(WIN32)
81 target_link_libraries(
82 ${PROJECT_NAME}
83 ROAD_TIME
84 Winmm
85 )
86endif()
87
88# ========================================
89# Install
90# ========================================
91pacpus_install(${PROJECT_NAME})
92
93# ========================================
94# Folder
95# ========================================
96pacpus_folder(${PROJECT_NAME} "tools")
Note: See TracBrowser for help on using the repository browser.