Changeset 107


Ignore:
Timestamp:
Jun 15, 2009, 10:39:03 AM (11 years ago)
Author:
smurzch2
Message:

Add install targets to the cmake build system.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r105 r107  
    105105set_source_files_properties (${all_srcs} PROPERTIES COMPILE_FLAGS "-O3 -Winline -Werror -finline-functions -fomit-frame-pointer")
    106106
     107#----------------------- installation -----------------------------
     108
     109file (GLOB config_files "${CMAKE_CURRENT_SOURCE_DIR}/Distribution/oscam.*")
     110file (GLOB doc_files "${CMAKE_CURRENT_SOURCE_DIR}/Distribution/doc/*.txt")
     111
     112install (PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${exe_name} DESTINATION bin COMPONENT bin)
     113install (FILES ${config_files} DESTINATION etc COMPONENT config)
     114install (FILES ${doc_files} DESTINATION share/doc/oscam COMPONENT doc)
     115
    107116#----------------------- printout resume -----------------------------
    108117
  • trunk/README

    r106 r107  
    4040
    4141    cmake -DCS_CONFDIR=/where/is/config/files ..
     42    cmake -DCMAKE_INSTALL_PREFIX=/where/to/installed ..
     43    cmake -DCS_CONFDIR=/where/is/config/files -DCMAKE_INSTALL_PREFIX=/where/to/installed ..
    4244
    4345Change build parameters (with interface)
     
    4547
    4648    ccmake ..
     49
     50Install
     51-------
     52
     53    make install
Note: See TracChangeset for help on using the changeset viewer.