Changeset 58 in pacpusframework for trunk/src/DBITEPlayerLib


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/DBITEPlayerLib/CMakeLists.txt

    r28 r58  
    1313# ========================================
    1414if(QT4_FOUND)
    15   set(QT_USE_QTXML true)
    16   set(QT_USE_QTNETWORK TRUE)
    17   include(${QT_USE_FILE})
     15    set(QT_USE_QTXML true)
     16    set(QT_USE_QTNETWORK TRUE)
     17    include(${QT_USE_FILE})
    1818else()
    19   message(ERROR "Qt4 needed")
     19    message(ERROR "Qt4 needed")
    2020endif(QT4_FOUND)
    2121
     
    2424# ========================================
    2525add_definitions(
    26   -DDBITE_PLAYER_EXPORTS
    27   ${QT_DEFINITIONS}
     26    -DDBITE_PLAYER_EXPORTS
     27    ${QT_DEFINITIONS}
    2828)
    2929
     
    3232# ========================================
    3333include_directories(
    34   ${CMAKE_BINARY_DIR}/DBITEPlayer
    35   ${QT_INCLUDE_DIR}
     34    ${CMAKE_BINARY_DIR}/DBITEPlayer
     35    ${QT_INCLUDE_DIR}
    3636)
    3737
     
    4040# ========================================
    4141set(
    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
     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
    5353)
    5454
     
    5757# ========================================
    5858set(
    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
     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
    6464)
    6565
     
    6868# ========================================
    6969qt4_wrap_cpp(
    70   PROJECT_MOC_SRCS
    71   ${FILES_TO_MOC}
     70    PROJECT_MOC_SRCS
     71    ${FILES_TO_MOC}
    7272)
    7373
     
    8282# ========================================
    8383pacpus_add_library(
    84   ${PROJECT_NAME} SHARED
    85   ${PROJECT_SRCS}
    86   ${PROJECT_MOC_SRCS}
     84    ${PROJECT_NAME} SHARED
     85    ${PROJECT_SRCS}
     86    ${PROJECT_MOC_SRCS}
    8787)
    8888
     
    9292# All platform
    9393target_link_libraries(
    94   ${PROJECT_NAME}
    95   FileLib
    96   PacpusTools
    97   ${QT_LIBRARIES}
     94    ${PROJECT_NAME}
     95    FileLib
     96    PacpusTools
     97    ${QT_LIBRARIES}
    9898)
    9999# Windows platform
    100 if (WIN32)
    101   target_link_libraries(
    102     ${PROJECT_NAME}
    103     ROAD_TIME
    104     Winmm
    105   )
     100if(WIN32)
     101    target_link_libraries(
     102        ${PROJECT_NAME}
     103        ROAD_TIME
     104        Winmm
     105    )
    106106endif()
    107107
Note: See TracChangeset for help on using the changeset viewer.