Changeset 1813 for trunk/CMakeLists.txt


Ignore:
Timestamp:
03/08/10 18:08:43 (14 years ago)
Author:
merek
Message:

UMP r1853 - nightmann: fix some small CS_WITH_GBOX Cmake issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r1743 r1813  
    8686    ${CMAKE_CURRENT_SOURCE_DIR}/csctapi
    8787    ${CMAKE_CURRENT_SOURCE_DIR}/cscrypt
     88    if(CS_WITH_GBOX)
     89        ${CMAKE_CURRENT_SOURCE_DIR}/csgbox
     90    endif(CS_WITH_GBOX)
    8891    ${OPTIONAL_INCLUDE_DIR}
    8992    )
     
    272275add_subdirectory (csctapi)
    273276add_subdirectory (cscrypt)
    274 
     277if(CS_WITH_GBOX)
     278    add_subdirectory (csgbox)
     279endif(CS_WITH_GBOX)
    275280if( HAVE_LIBRT OR HAVE_LIBRT_STATIC)
    276281    if (HAVE_LIBUSB)
     
    310315set (exe_name "oscam")
    311316add_executable (${exe_name} ${exe_srcs} ${exe_hdrs})
    312 target_link_libraries (${exe_name} ${csoscam} ${csmodules} ${csreaders} csctapi cscrypt)
     317if(CS_WITH_GBOX)
     318    target_link_libraries (${exe_name} ${csoscam} ${csmodules} ${csreaders} csctapi cscrypt csgbox)
     319else(CS_WITHGBOX)
     320    target_link_libraries (${exe_name} ${csoscam} ${csmodules} ${csreaders} csctapi cscrypt)
     321endif(CS_WITH_GBOX)
    313322if(HAVE_LIBRT AND HAVE_LIBUSB)
    314323    target_link_libraries (${exe_name} imp_libusb)
     
    506515    message (STATUS "  irdeto guessing enabled")
    507516endif (IRDETO_GUESSING)
     517if(CS_WITH_GBOX)
     518    message (STATUS "  gbox protocol enabled")
     519endif(CS_WITH_GBOX)
    508520message (STATUS "")
Note: See TracChangeset for help on using the changeset viewer.