1 | #################################################
|
---|
2 | # ___________ ____ ______ __ __ _____ #
|
---|
3 | # \____ \__ \ _/ ___\\____ \| | \/ ___/ #
|
---|
4 | # | |_> > __ \\ \___| |_> > | /\___ \ #
|
---|
5 | # | __(____ /\___ > __/|____//____ > #
|
---|
6 | # |__| \/ \/|__| \/ #
|
---|
7 | # #
|
---|
8 | #################################################
|
---|
9 | project(DBITEPlayer)
|
---|
10 |
|
---|
11 | # ========================================
|
---|
12 | # Compiler definitions
|
---|
13 | # ========================================
|
---|
14 | add_definitions(
|
---|
15 | ${QT_DEFINITIONS}
|
---|
16 | )
|
---|
17 |
|
---|
18 | # ========================================
|
---|
19 | # Include directories
|
---|
20 | # ========================================
|
---|
21 | include_directories(
|
---|
22 | ${CMAKE_BINARY_DIR}/DBITEPlayer
|
---|
23 | ${QT_INCLUDE_DIR}
|
---|
24 | )
|
---|
25 |
|
---|
26 | # ========================================
|
---|
27 | # Link directories
|
---|
28 | # ========================================
|
---|
29 | link_directories(
|
---|
30 | ${PROJECT_BINARY_DIR}/../PacpusLib
|
---|
31 | ${PROJECT_BINARY_DIR}/../FileLib
|
---|
32 | ${PROJECT_BINARY_DIR}/../DBITEPlayerLib
|
---|
33 | )
|
---|
34 |
|
---|
35 | # ========================================
|
---|
36 | # List of sources
|
---|
37 | # ========================================
|
---|
38 | set(
|
---|
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 | # ========================================
|
---|
61 | pacpus_add_executable(
|
---|
62 | ${PROJECT_NAME}
|
---|
63 | ./src/main.cpp
|
---|
64 | )
|
---|
65 |
|
---|
66 | # ========================================
|
---|
67 | # Libraries & Dependencies
|
---|
68 | # ========================================
|
---|
69 | # Windows platform
|
---|
70 | if(WIN32)
|
---|
71 | set(LIBS
|
---|
72 | optimized ROAD_TIME debug ROAD_TIME_d
|
---|
73 | Winmm
|
---|
74 | )
|
---|
75 | endif()
|
---|
76 |
|
---|
77 | # All the platform
|
---|
78 | target_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 | # ========================================
|
---|
91 | pacpus_install(${PROJECT_NAME})
|
---|
92 |
|
---|
93 | # ========================================
|
---|
94 | # Folder
|
---|
95 | # ========================================
|
---|
96 | pacpus_folder(${PROJECT_NAME} "tools")
|
---|