Changeset 370 in pacpusframework for branches/0.2.x
- Timestamp:
- Apr 4, 2016, 1:29:55 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.2.x/src/dbcDecriptor/CMakeLists.txt
r331 r370 1 PROJECT(PacpusDBCDecriptor) 2 ################################################################################ 3 CMAKE_MINIMUM_REQUIRED(VERSION 2.8) 4 5 # ======================================== 6 # Configure qt4 7 # ======================================== 8 FIND_PACKAGE(Qt4 REQUIRED) 9 IF(QT4_FOUND) 10 SET(QT_USE_QTGUI TRUE) 11 INCLUDE(${QT_USE_FILE}) 12 ELSE() 13 MESSAGE(ERROR " QT4 NEEDED") 14 ENDIF() 15 16 IF(WIN32) 17 LINK_LIBRARIES(${QT_QTMAIN_LIBRARY}) 18 SET(GUI_TYPE WIN32) 19 ENDIF(WIN32) 1 ################################################# 2 # ___________ ____ ______ __ __ _____ # 3 # \____ \__ \ _/ ___\\____ \| | \/ ___/ # 4 # | |_> > __ \\ \___| |_> > | /\___ \ # 5 # | __(____ /\___ > __/|____//____ > # 6 # |__| \/ \/|__| \/ # 7 # # 8 ################################################# 9 project(PacpusDBCDecriptor) 20 10 21 11 # ======================================== 22 12 # Compiler definitions 23 13 # ======================================== 24 ADD_DEFINITIONS( 25 ${QT_DEFINITIONS} 14 add_definitions(${QT_DEFINITIONS}) 15 16 # ======================================== 17 # Pre-configuration of the compiler 18 # ======================================== 19 find_package(Pacpus REQUIRED) 20 # Includes directories 21 if(PACPUS_FOUND) 22 include_directories( 23 ${PACPUS_DEPENDENCIES_INC} 24 ${PACPUS_INCLUDE_DIR} 26 25 ) 26 # Compiler flags coming from PacpusDependencies and PacpusPlatforms 27 add_definitions(${PACPUS_DEFINITIONS}) 28 endif(PACPUS_FOUND) 27 29 28 30 # ======================================== 29 31 # Include directories 30 32 # ======================================== 31 INCLUDE_DIRECTORIES( 32 ${PROJECT_BINARY_DIR} 33 ${QT_INCLUDE_DIR} 33 include_directories( 34 ${CMAKE_BINARY_DIR}/DBITEPlayer 35 ${QT_INCLUDE_DIR} 36 ) 37 38 # ======================================== 39 # Link directories 40 # ======================================== 41 link_directories( 42 ${PROJECT_BINARY_DIR}/../PacpusLib 43 ${PROJECT_BINARY_DIR}/../FileLib 44 ${PROJECT_BINARY_DIR}/../DBITEPlayerLib 45 ${PROJECT_BINARY_DIR}/../PacpusTools 46 ${PROJECT_BINARY_DIR}/../RoadTime 34 47 ) 35 48 … … 37 50 # List of sources 38 51 # ======================================== 39 SET( 40 PROJECT_SRCS 41 src/mainwindow.cpp 42 src/main.cpp 43 src/mainwindow.h 44 src/structure.h 45 ../ico/heudiasycIco.rc 52 set(PROJECT_HDRS 53 54 ) 55 set(PROJECT_SRCS 56 src/mainwindow.cpp 57 src/main.cpp 58 src/mainwindow.h 59 src/structure.h 60 #../ico/heudiasycIco.rc 46 61 ) 47 62 … … 50 65 # ======================================== 51 66 SET( 52 53 67 FILES_TO_MOC 68 src/mainwindow.h 54 69 ) 55 70 56 71 SET( 57 58 72 UI_FILES 73 src/mainwindow.ui 59 74 ) 60 75 … … 62 77 # Call MOC 63 78 # ======================================== 64 QT 4_WRAP_CPP(65 66 79 QT_WRAP_CPP( 80 PROJECT_MOC_SRCS 81 ${FILES_TO_MOC} 67 82 ) 68 83 69 QT 4_WRAP_UI(70 71 84 QT_WRAP_UI( 85 PROJECT_UI_SRCS 86 ${UI_FILES} 72 87 ) 73 88 … … 76 91 # ======================================== 77 92 pacpus_add_executable( 78 ${PROJECT_NAME} 79 ${GUI_TYPE} 80 ${PROJECT_SRCS} 81 ${PROJECT_MOC_SRCS} 82 ${PROJECT_UI_SRCS} 93 ${PROJECT_NAME} 94 ${GUI_TYPE} 95 ${PROJECT_SRCS} 96 ${PROJECT_MOC_SRCS} 97 ${PROJECT_UI_SRCS} 98 83 99 ) 84 100 85 101 # ======================================== 86 # Libraries 102 # Libraries & Dependencies 87 103 # ======================================== 88 TARGET_LINK_LIBRARIES( 89 ${PROJECT_NAME} 90 ${QT_LIBRARIES} 104 105 set(OPT_LIBRARIES 106 optimized dbiteplayerlib debug dbiteplayerlib_d 107 optimized FileLib debug FileLib_d 108 optimized PacpusLib debug PacpusLib_d 109 ) 110 111 # Windows platform 112 if(WIN32) 113 LIST(APPEND OPT_LIBRARIES 114 optimized ROAD_TIME debug ROAD_TIME_d 115 Winmm 116 ) 117 endif() 118 119 if(UNIX) 120 LIST(APPEND OPT_LIBRARIES 121 pthread 122 ) 123 endif() 124 125 # All the platform 126 target_link_libraries( 127 ${PROJECT_NAME} 128 ${QT_LIBRARIES} 129 ${OPT_LIBRARIES} 130 ${PACPUS_DEPENDENCIES_LIB} 91 131 ) 92 132 … … 95 135 # ======================================== 96 136 pacpus_install(${PROJECT_NAME}) 137 138 # ======================================== 139 # Folder 140 # ======================================== 141 pacpus_folder(${PROJECT_NAME} "tools")
Note:
See TracChangeset
for help on using the changeset viewer.