Changeset 300 in pacpusframework for trunk/src/PacpusTools
- Timestamp:
- Apr 8, 2014, 8:52:14 AM (11 years ago)
- Location:
- trunk/src/PacpusTools
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/PacpusTools/CMakeLists.txt
r198 r300 11 11 create_export(EXPORT_HDR ${PROJECT_NAME} "${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools") 12 12 13 # ========================================13 ################################################################################ 14 14 # Compiler definitions 15 # ========================================16 15 add_definitions(${QT_DEFINITIONS}) 17 16 18 # ======================================== 19 # Include directories 20 # ======================================== 21 include_directories(${QT_INCLUDE_DIR}) 17 ################################################################################ 18 # DIRECTORIES 19 include_directories( 20 ${QT_INCLUDE_DIR} 21 ) 22 22 23 # ========================================24 # Link directories25 # ========================================26 23 link_directories( 27 24 ${PROJECT_BINARY_DIR}/../PacpusLib … … 29 26 ) 30 27 31 # ======================================== 32 # List of sources 33 # ======================================== 34 set(PROJECT_HDRS 28 ################################################################################ 29 # FILES 30 set(HDRS 35 31 ${EXPORT_HDR} 36 32 ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/AsyncWorkerBase.h … … 39 35 ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/matrice.h 40 36 ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/PeriodicWorker.h 41 ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/ PosixShMem.h42 ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/ShMem.h 37 ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/SharedMemory.h 38 43 39 #${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/pacpusStruct.h 44 40 #${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/PacpusSerialPort.h 45 41 ) 46 42 47 set(PROJECT_SRCS 48 ./src/matrice.cpp 49 ./src/geodesie.cpp 50 ./src/AsyncWorkerBase.cpp 51 ./src/PeriodicWorker.cpp 52 #./src/PacpusSerialPort.cpp 43 set(SRCS 44 src/matrice.cpp 45 src/geodesie.cpp 46 src/AsyncWorkerBase.cpp 47 src/PeriodicWorker.cpp 48 #src/PacpusSerialPort.cpp 49 src/SharedMemory.cpp 53 50 ) 54 51 55 # ======================================== 56 # Files to MOC 57 # ======================================== 52 ################################################################################ 53 # QT 58 54 set(FILES_TO_MOC 59 55 ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/AsyncWorkerBase.h … … 62 58 ) 63 59 64 # ========================================65 # Call MOC66 # ========================================67 60 qt_wrap_cpp( 68 61 PROJECT_MOC_SRCS … … 70 63 ) 71 64 72 # ======================================== 73 # Platform specific sources 74 # ======================================== 75 # Unix 76 if(UNIX) 77 list(APPEND PROJECT_SRCS 78 ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/PosixShMem.h 79 src/PosixShMem.cpp 80 ) 81 endif() 82 # Windows 83 if(WIN32) 84 list(APPEND PROJECT_SRCS 85 ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/Win32ShMem.h 86 src/Win32ShMem.cpp 87 ) 88 endif() 89 90 # ======================================== 91 # Build a library 92 # ======================================== 65 ################################################################################ 66 # BUILD and LINK 93 67 pacpus_add_library(${PROJECT_NAME} SHARED 94 ${ PROJECT_HDRS}95 ${ PROJECT_SRCS}68 ${HDRS} 69 ${SRCS} 96 70 ${PROJECT_MOC_SRCS} 97 71 ) 98 72 99 # ======================================== 100 # Libraries 101 # ======================================== 73 # LIBS 102 74 set(OPT_LIBRARIES 103 75 optimized PacpusLib debug PacpusLib_d 104 76 ) 105 77 106 # Windows platform107 78 if(WIN32) 108 79 LIST(APPEND OPT_LIBRARIES … … 111 82 endif() 112 83 113 target_link_libraries( 114 84 # LINK 85 target_link_libraries(${PROJECT_NAME} 115 86 ${QT_LIBRARIES} 116 87 ${PACPUS_DEPENDENCIES_LIB} … … 118 89 ) 119 90 120 # ======================================== 121 # Install 122 # ======================================== 91 ################################################################################ 92 # INSTALL 123 93 pacpus_install(${PROJECT_NAME}) 124 94 125 # ======================================== 126 # Folder 127 # ======================================== 95 ################################################################################ 96 # FOLDER 128 97 pacpus_folder(${PROJECT_NAME} "libraries")
Note:
See TracChangeset
for help on using the changeset viewer.