Changeset 58 in pacpusframework for trunk/src/PacpusTools


Ignore:
Timestamp:
Jan 9, 2013, 10:35:31 AM (12 years ago)
Author:
Marek Kurdej
Message:

CMake: updated to conform to the coding style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/PacpusTools/CMakeLists.txt

    r28 r58  
    1313# ========================================
    1414if(QT4_FOUND)
    15   set(QT_USE_QTXML true)
    16   include(${QT_USE_FILE})
     15    set(QT_USE_QTXML true)
     16    include(${QT_USE_FILE})
    1717else()
    18   message(ERROR "Qt4 needed")
     18    message(ERROR "Qt4 needed")
    1919endif(QT4_FOUND)
    2020
     
    2323# ========================================
    2424add_definitions(
    25   ${QT_DEFINITIONS}
     25    ${QT_DEFINITIONS}
    2626)
    2727
     
    3030# ========================================
    3131include_directories(
    32   ${QT_INCLUDE_DIR}
     32    ${QT_INCLUDE_DIR}
    3333)
    3434
     
    3737# ========================================
    3838set(
    39   PROJECT_SRCS
    40   ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/matrice.h
    41   ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/BinaryDecoder.h
    42   ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/PosixShMem.h
    43   ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/ShMem.h
    44   ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/geodesie.h
    45   ./src/matrice.cpp
    46   ./src/geodesie.cpp
    47   ./src/AsyncWorkerBase.cpp
    48   ./src/PeriodicWorker.cpp
     39    PROJECT_SRCS
     40    ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/matrice.h
     41    ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/BinaryDecoder.h
     42    ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/PosixShMem.h
     43    ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/ShMem.h
     44    ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/geodesie.h
     45    ./src/matrice.cpp
     46    ./src/geodesie.cpp
     47    ./src/AsyncWorkerBase.cpp
     48    ./src/PeriodicWorker.cpp
    4949)
    5050
     
    5353# ========================================
    5454set(
    55   FILES_TO_MOC
    56   ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/AsyncWorkerBase.h
    57   ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/PeriodicWorker.h
     55    FILES_TO_MOC
     56    ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/AsyncWorkerBase.h
     57    ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/PeriodicWorker.h
    5858)
    5959
     
    6262# ========================================
    6363qt4_wrap_cpp(
    64   PROJECT_MOC_SRCS
    65   ${FILES_TO_MOC}
     64    PROJECT_MOC_SRCS
     65    ${FILES_TO_MOC}
    6666)
    6767
     
    7171# Unix
    7272if(UNIX)
    73   list(
    74     APPEND PROJECT_SRCS
    75     ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/PosixShMem.h
    76     src/PosixShMem.cpp
    77   )
     73    list(
     74        APPEND PROJECT_SRCS
     75        ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/PosixShMem.h
     76        src/PosixShMem.cpp
     77    )
    7878endif()
    7979# Windows
    8080if(WIN32)
    81   list(
    82     APPEND PROJECT_SRCS
    83     ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/Win32ShMem.h
    84     src/Win32ShMem.cpp
    85   )
     81    list(
     82        APPEND PROJECT_SRCS
     83        ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/Win32ShMem.h
     84        src/Win32ShMem.cpp
     85    )
    8686endif()
    8787
     
    9090# ========================================
    9191pacpus_add_library(
    92   ${PROJECT_NAME}
    93   ${PROJECT_SRCS}
    94   ${PROJECT_MOC_SRCS}
    95 )
    96 
    97 # ========================================
    98 # Properties
    99 # ========================================
    100 set_target_properties(
    101   ${PROJECT_NAME}
    102   PROPERTIES DEBUG_POSTFIX "_d"
     92    ${PROJECT_NAME}
     93    ${PROJECT_SRCS}
     94    ${PROJECT_MOC_SRCS}
    10395)
    10496
Note: See TracChangeset for help on using the changeset viewer.