Changeset 23 in pacpusframework for trunk/src


Ignore:
Timestamp:
Jan 8, 2013, 2:17:41 PM (12 years ago)
Author:
Marek Kurdej
Message:

Major: using pacpus_add_executable and pacpus_add_library.

Location:
trunk/src
Files:
7 edited

Legend:

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

    r3 r23  
    6161# Build an executable
    6262# ========================================
    63 add_executable(
     63pacpus_add_executable(
    6464  ${PROJECT_NAME}
    6565  ./src/main.cpp
     
    6767
    6868# ========================================
    69 # Libraries
     69# Libraries & Dependencies
    7070# ========================================
    7171# All the platform
     
    8888
    8989# ========================================
    90 # Properties
     90# Install
    9191# ========================================
    92 set_target_properties(
    93   ${PROJECT_NAME}
    94   PROPERTIES DEBUG_POSTFIX "_d"
    95 )
     92pacpus_install(${PROJECT_NAME})
    9693
    9794# ========================================
    98 # Install directories
     95# Folder
    9996# ========================================
    100 install(
    101   TARGETS ${PROJECT_NAME}
    102   RUNTIME DESTINATION ${PACPUS_INSTALL_DIR}/bin
    103   LIBRARY DESTINATION ${PACPUS_INSTALL_DIR}/lib
    104   ARCHIVE DESTINATION ${PACPUS_INSTALL_DIR}/lib
    105 )
     97pacpus_folder(${PROJECT_NAME} "tools")
  • trunk/src/DBITEPlayerLib/CMakeLists.txt

    r7 r23  
    8181# Build a library
    8282# ========================================
    83 add_library(
     83pacpus_add_library(
    8484  ${PROJECT_NAME} SHARED
    8585  ${PROJECT_SRCS}
     
    107107
    108108# ========================================
    109 # Properties
     109# Install
    110110# ========================================
    111 set_target_properties(
    112   ${PROJECT_NAME}
    113   PROPERTIES DEBUG_POSTFIX "_d"
    114 )
     111pacpus_install(${PROJECT_NAME})
    115112
    116113# ========================================
    117 # Install directories
     114# Folder
    118115# ========================================
    119 install(
    120   TARGETS ${PROJECT_NAME}
    121   RUNTIME DESTINATION ${PACPUS_INSTALL_DIR}/bin
    122   LIBRARY DESTINATION ${PACPUS_INSTALL_DIR}/lib
    123   ARCHIVE DESTINATION ${PACPUS_INSTALL_DIR}/lib
    124 )
     116pacpus_folder(${PROJECT_NAME} "libraries")
  • trunk/src/FileLib/CMakeLists.txt

    r3 r23  
    2626# Build a library
    2727# ========================================
    28 add_library(
    29   ${PROJECT_NAME}
     28pacpus_add_library(
     29  ${PROJECT_NAME} SHARED
    3030  ${PROJECT_SRCS}
    3131)
     
    4040
    4141# ========================================
    42 # Properties
     42# Install
    4343# ========================================
    44 set_target_properties(
    45   ${PROJECT_NAME}
    46   PROPERTIES DEBUG_POSTFIX "_d"
    47 )
     44pacpus_install(${PROJECT_NAME})
    4845
    4946# ========================================
    50 # Install directories
     47# Folder
    5148# ========================================
    52 install(
    53   TARGETS ${PROJECT_NAME}
    54   RUNTIME DESTINATION ${PACPUS_INSTALL_DIR}/bin
    55   LIBRARY DESTINATION ${PACPUS_INSTALL_DIR}/lib
    56   ARCHIVE DESTINATION ${PACPUS_INSTALL_DIR}/lib
    57 )
     49pacpus_folder(${PROJECT_NAME} "libraries")
  • trunk/src/PacpusLib/CMakeLists.txt

    r3 r23  
    6161# Build a library
    6262# ========================================
    63 add_library(
     63pacpus_add_library(
    6464  ${PROJECT_NAME} SHARED
    6565  ${PROJECT_SRCS}
     
    7676
    7777# ========================================
    78 # Properties
     78# Install
    7979# ========================================
    80 set_target_properties(
    81   ${PROJECT_NAME}
    82   PROPERTIES DEBUG_POSTFIX "_d"
    83 )
     80pacpus_install(${PROJECT_NAME})
    8481
    8582# ========================================
    86 # Install directories
     83# Folder
    8784# ========================================
    88 install(
    89   TARGETS ${PROJECT_NAME}
    90   RUNTIME DESTINATION ${PACPUS_INSTALL_DIR}/bin
    91   LIBRARY DESTINATION ${PACPUS_INSTALL_DIR}/lib
    92   ARCHIVE DESTINATION ${PACPUS_INSTALL_DIR}/lib
    93 )
     85pacpus_folder(${PROJECT_NAME} "libraries")
  • trunk/src/PacpusSensor/CMakeLists.txt

    r7 r23  
    5858# Build an executable
    5959# ========================================
    60 add_executable(
     60pacpus_add_executable(
    6161  ${PROJECT_NAME}
    6262  ./src/main.cpp
     
    8989
    9090# ========================================
    91 # Properties
     91# Install
    9292# ========================================
    93 set_target_properties(
    94   ${PROJECT_NAME}
    95   PROPERTIES DEBUG_POSTFIX "_d"
    96 )
     93pacpus_install(${PROJECT_NAME})
    9794
    9895# ========================================
    99 # Install directories
     96# Folder
    10097# ========================================
    101 install(
    102   TARGETS ${PROJECT_NAME}
    103   RUNTIME DESTINATION ${PACPUS_INSTALL_DIR}/bin
    104   LIBRARY DESTINATION ${PACPUS_INSTALL_DIR}/lib
    105   ARCHIVE DESTINATION ${PACPUS_INSTALL_DIR}/lib
    106 )
     98pacpus_folder(${PROJECT_NAME} "tools")
  • trunk/src/PacpusTools/CMakeLists.txt

    r10 r23  
    8989# Build a library
    9090# ========================================
    91 add_library(
     91pacpus_add_library(
    9292  ${PROJECT_NAME}
    9393  ${PROJECT_SRCS}
     
    104104
    105105# ========================================
    106 # Install directories
     106# Install
    107107# ========================================
    108 install(
    109   TARGETS ${PROJECT_NAME}
    110   RUNTIME DESTINATION ${PACPUS_INSTALL_DIR}/bin
    111   LIBRARY DESTINATION ${PACPUS_INSTALL_DIR}/lib
    112   ARCHIVE DESTINATION ${PACPUS_INSTALL_DIR}/lib
    113 )
     108pacpus_install(${PROJECT_NAME})
     109
     110# ========================================
     111# Folder
     112# ========================================
     113pacpus_folder(${PROJECT_NAME} "libraries")
  • trunk/src/RoadTime/CMakeLists.txt

    r3 r23  
    3434# Build a library
    3535# ========================================
    36 add_library(
     36pacpus_add_library(
    3737  ${PROJECT_NAME} SHARED
    3838  ${PROJECT_SRCS}
     
    4040
    4141# ========================================
    42 # Properties
     42# Install
    4343# ========================================
    44 set_target_properties(
    45   ${PROJECT_NAME}
    46   PROPERTIES DEBUG_POSTFIX "_d"
    47 )
     44pacpus_install(${PROJECT_NAME})
    4845
    4946# ========================================
    50 # Install directories
     47# Folder
    5148# ========================================
    52 install(
    53   TARGETS ${PROJECT_NAME}
    54   RUNTIME DESTINATION ${PACPUS_INSTALL_DIR}/bin
    55   LIBRARY DESTINATION ${PACPUS_INSTALL_DIR}/lib
    56   ARCHIVE DESTINATION ${PACPUS_INSTALL_DIR}/lib
    57 )
     49pacpus_folder(${PROJECT_NAME} "libraries")
Note: See TracChangeset for help on using the changeset viewer.