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

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

Beta-2 : Add missing file inputOutputBase.cpp, et clean CMakeList

  • 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# Windows platform
70if(WIN32)
71set(LIBS
72 optimized ROAD_TIME debug ROAD_TIME_d
73 Winmm
74)
75endif()
76
77# All the platform
78target_link_libraries(
79 ${PROJECT_NAME}
80 ${QT_LIBRARIES}
81 ${LIBS}
82 ${PACPUS_DEPENDENCIES_LIB}
83 optimized dbiteplayerlib debug dbiteplayerlib_d
84 optimized FileLib debug FileLib_d
85 optimized PacpusLib debug PacpusLib_d
86)
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.