1 | #################################################
|
---|
2 | # ___________ ____ ______ __ __ _____ #
|
---|
3 | # \____ \__ \ _/ ___\\____ \| | \/ ___/ #
|
---|
4 | # | |_> > __ \\ \___| |_> > | /\___ \ #
|
---|
5 | # | __(____ /\___ > __/|____//____ > #
|
---|
6 | # |__| \/ \/|__| \/ #
|
---|
7 | # #
|
---|
8 | #################################################
|
---|
9 | project(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 | # ========================================
|
---|
24 | add_definitions(
|
---|
25 | ${QT_DEFINITIONS}
|
---|
26 | )
|
---|
27 |
|
---|
28 | # ========================================
|
---|
29 | # Include directories
|
---|
30 | # ========================================
|
---|
31 | include_directories(
|
---|
32 | ${CMAKE_BINARY_DIR}/DBITEPlayer
|
---|
33 | ${QT_INCLUDE_DIR}
|
---|
34 | )
|
---|
35 |
|
---|
36 | # ========================================
|
---|
37 | # List of sources
|
---|
38 | # ========================================
|
---|
39 | set(
|
---|
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 | # ========================================
|
---|
62 | pacpus_add_executable(
|
---|
63 | ${PROJECT_NAME}
|
---|
64 | ./src/main.cpp
|
---|
65 | )
|
---|
66 |
|
---|
67 | # ========================================
|
---|
68 | # Libraries & Dependencies
|
---|
69 | # ========================================
|
---|
70 | # All the platform
|
---|
71 | target_link_libraries(
|
---|
72 | ${PROJECT_NAME}
|
---|
73 | ${QT_LIBRARIES}
|
---|
74 | dbiteplayerlib
|
---|
75 | FileLib
|
---|
76 | PacpusLib
|
---|
77 | PacpusTools
|
---|
78 | )
|
---|
79 | # Windows
|
---|
80 | if(WIN32)
|
---|
81 | target_link_libraries(
|
---|
82 | ${PROJECT_NAME}
|
---|
83 | ROAD_TIME
|
---|
84 | Winmm
|
---|
85 | )
|
---|
86 | endif()
|
---|
87 |
|
---|
88 | # ========================================
|
---|
89 | # Install
|
---|
90 | # ========================================
|
---|
91 | pacpus_install(${PROJECT_NAME})
|
---|
92 |
|
---|
93 | # ========================================
|
---|
94 | # Folder
|
---|
95 | # ========================================
|
---|
96 | pacpus_folder(${PROJECT_NAME} "tools")
|
---|