source: pacpusframework/trunk/src/DBITEPlayerLib/CMakeLists.txt@ 64

Last change on this file since 64 was 64, checked in by Marek Kurdej, 11 years ago

Modified property: added svn:keywords=Id.

  • Property svn:keywords set to Id
File size: 3.1 KB
RevLine 
[7]1#################################################
2# ___________ ____ ______ __ __ _____ #
3# \____ \__ \ _/ ___\\____ \| | \/ ___/ #
4# | |_> > __ \\ \___| |_> > | /\___ \ #
5# | __(____ /\___ > __/|____//____ > #
6# |__| \/ \/|__| \/ #
7# #
8#################################################
9project(dbiteplayerlib)
10
[3]11# ========================================
[7]12# Configure qt4
13# ========================================
14if(QT4_FOUND)
[58]15 set(QT_USE_QTXML true)
16 set(QT_USE_QTNETWORK TRUE)
17 include(${QT_USE_FILE})
[7]18else()
[58]19 message(ERROR "Qt4 needed")
[7]20endif(QT4_FOUND)
21
22# ========================================
23# Compiler definitions
24# ========================================
25add_definitions(
[58]26 -DDBITE_PLAYER_EXPORTS
27 ${QT_DEFINITIONS}
[7]28)
29
30# ========================================
31# Include directories
32# ========================================
33include_directories(
[58]34 ${CMAKE_BINARY_DIR}/DBITEPlayer
35 ${QT_INCLUDE_DIR}
[7]36)
37
38# ========================================
39# List of sources
40# ========================================
41set(
[58]42 PROJECT_SRCS
43 ./DbtPlyEngine.cpp
44 ./DbtPlyUserInterface.cpp
45 ./DbtPlyEngineStateChart.cpp
46 ./DbtPlyFileManager.cpp
47 ./DbtPlyTrigger.cpp
48 ${PACPUS_INCLUDE_DIR}/Pacpus/DbitePlayer/DbtPlyEngine.h
49 ${PACPUS_INCLUDE_DIR}/Pacpus/DbitePlayer/DbtPlyFileManager.h
50 ${PACPUS_INCLUDE_DIR}/Pacpus/DbitePlayer/DbtPlyTrigger.h
51 ${PACPUS_INCLUDE_DIR}/Pacpus/DbitePlayer/DbtPlyEngineStateChart.h
52 ${PACPUS_INCLUDE_DIR}/Pacpus/DbitePlayer/DbtPlyUserInterface.h
[7]53)
54
55# ========================================
56# Files to MOC
57# ========================================
58set(
[58]59 FILES_TO_MOC
60 ${PACPUS_INCLUDE_DIR}/Pacpus/DbitePlayer/DbtPlyEngine.h
61 ${PACPUS_INCLUDE_DIR}/Pacpus/DbitePlayer/DbtPlyFileManager.h
62 ${PACPUS_INCLUDE_DIR}/Pacpus/DbitePlayer/DbtPlyTrigger.h
63 ${PACPUS_INCLUDE_DIR}/Pacpus/DbitePlayer/DbtPlyUserInterface.h
[7]64)
65
66# ========================================
67# Call MOC
68# ========================================
69qt4_wrap_cpp(
[58]70 PROJECT_MOC_SRCS
71 ${FILES_TO_MOC}
[7]72)
73
74# ========================================
75# Directories architecture
76# ========================================
77SOURCE_GROUP(Core FILES ${PROJECT_SRCS} )
78SOURCE_GROUP(moc FILES ${PROJECT_MOC_SRCS})
79
80# ========================================
81# Build a library
82# ========================================
[23]83pacpus_add_library(
[58]84 ${PROJECT_NAME} SHARED
85 ${PROJECT_SRCS}
86 ${PROJECT_MOC_SRCS}
[7]87)
88
89# ========================================
90# Libraries
91# ========================================
92# All platform
93target_link_libraries(
[58]94 ${PROJECT_NAME}
95 FileLib
96 PacpusTools
97 ${QT_LIBRARIES}
[7]98)
99# Windows platform
[58]100if(WIN32)
101 target_link_libraries(
102 ${PROJECT_NAME}
103 ROAD_TIME
104 Winmm
105 )
[7]106endif()
107
108# ========================================
[23]109# Install
[3]110# ========================================
[23]111pacpus_install(${PROJECT_NAME})
[7]112
113# ========================================
[23]114# Folder
[7]115# ========================================
[23]116pacpus_folder(${PROJECT_NAME} "libraries")
Note: See TracBrowser for help on using the repository browser.