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

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

Beta-2 : Fix CMakeList (link), remove useless code and add improvement

  • Property svn:executable set to *
File size: 2.8 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# Link directories
38# ========================================
39link_directories(
40 ${PROJECT_BINARY_DIR}/../PacpusLib
41 ${PROJECT_BINARY_DIR}/../FileLib
42)
43
44# ========================================
45# List of sources
46# ========================================
47set(
48 PROJECT_SRCS
49 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/cstdint.h
50 ${PACPUS_INCLUDE_DIR}/Pacpus//kernel/ComponentBase.h
51 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/ComponentFactory.h
52 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/ComponentFactoryBase.h
53 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/ComponentManager.h
54 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/Log.h
55 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/pacpus.h
56 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/road_time.h
57 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/XmlComponentConfig.h
58 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/XmlConfigFile.h
59 ./ComponentBase.cpp
60 ./ComponentFactoryBase.cpp
61 ./ComponentManager.cpp
62 ./Log.cpp
63 ./XmlComponentConfig.cpp
64 ./XmlConfigFile.cpp
65)
66
67# ========================================
68# Build an executable
69# ========================================
70pacpus_add_executable(
71 ${PROJECT_NAME}
72 ./src/main.cpp
73)
74
75# ========================================
76# Libraries & Dependencies
77# ========================================
78# All the platform
79target_link_libraries(
80 ${PROJECT_NAME}
81 ${QT_LIBRARIES}
82 dbiteplayerlib
83# FileLib
84# PacpusLib
85# PacpusTools
86)
87# Windows
88if(WIN32)
89 target_link_libraries(
90 ${PROJECT_NAME}
91 ROAD_TIME
92 Winmm
93 )
94endif()
95
96# ========================================
97# Install
98# ========================================
99pacpus_install(${PROJECT_NAME})
100
101# ========================================
102# Folder
103# ========================================
104pacpus_folder(${PROJECT_NAME} "tools")
Note: See TracBrowser for help on using the repository browser.