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

Last change on this file since 120 was 120, checked in by morasjul, 11 years ago
  • add PacpusSerialport (QT 5.1 required)
  • add part of QT4 / QT5 cmake script
  • fix CMake (link)
  • add ComponentBase virtual function addInput() & addOutput() call before component configuration
  • Property svn:executable set to *
File size: 2.7 KB
Line 
1#################################################
2# ___________ ____ ______ __ __ _____ #
3# \____ \__ \ _/ ___\\____ \| | \/ ___/ #
4# | |_> > __ \\ \___| |_> > | /\___ \ #
5# | __(____ /\___ > __/|____//____ > #
6# |__| \/ \/|__| \/ #
7# #
8#################################################
9project(DBITEPlayer)
10
11# ========================================
12# Compiler definitions
13# ========================================
14add_definitions(
15 ${QT_DEFINITIONS}
16)
17
18# ========================================
19# Include directories
20# ========================================
21include_directories(
22 ${CMAKE_BINARY_DIR}/DBITEPlayer
23 ${QT_INCLUDE_DIR}
24)
25
26# ========================================
27# Link directories
28# ========================================
29link_directories(
30 ${PROJECT_BINARY_DIR}/../PacpusLib
31 ${PROJECT_BINARY_DIR}/../FileLib
32 ${PROJECT_BINARY_DIR}/../DBITEPlayerLib
33)
34
35# ========================================
36# List of sources
37# ========================================
38set(
39 PROJECT_SRCS
40 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/cstdint.h
41 ${PACPUS_INCLUDE_DIR}/Pacpus//kernel/ComponentBase.h
42 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/ComponentFactory.h
43 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/ComponentFactoryBase.h
44 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/ComponentManager.h
45 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/Log.h
46 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/pacpus.h
47 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/road_time.h
48 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/XmlComponentConfig.h
49 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/XmlConfigFile.h
50 ./ComponentBase.cpp
51 ./ComponentFactoryBase.cpp
52 ./ComponentManager.cpp
53 ./Log.cpp
54 ./XmlComponentConfig.cpp
55 ./XmlConfigFile.cpp
56)
57
58# ========================================
59# Build an executable
60# ========================================
61pacpus_add_executable(
62 ${PROJECT_NAME}
63 ./src/main.cpp
64)
65
66# ========================================
67# Libraries & Dependencies
68# ========================================
69
70set(OPT_LIBRARIES
71 optimized dbiteplayerlib debug dbiteplayerlib_d
72 optimized FileLib debug FileLib_d
73 optimized PacpusLib debug PacpusLib_d
74)
75
76# Windows platform
77if(WIN32)
78 LIST(APPEND OPT_LIBRARIES
79 optimized ROAD_TIME debug ROAD_TIME_d
80 Winmm
81 )
82endif()
83
84# All the platform
85target_link_libraries(
86 ${PROJECT_NAME}
87 ${QT_LIBRARIES}
88 ${OPT_LIBRARIES}
89 ${PACPUS_DEPENDENCIES_LIB}
90)
91
92# ========================================
93# Install
94# ========================================
95pacpus_install(${PROJECT_NAME})
96
97# ========================================
98# Folder
99# ========================================
100pacpus_folder(${PROJECT_NAME} "tools")
Note: See TracBrowser for help on using the repository browser.