"Fossies" - the Fresh Open Source Software Archive

Member "zuluCrypt-6.0.0/zuluSafe/CMakeLists.txt" (29 Jan 2021, 896 Bytes) of package /linux/misc/zuluCrypt-6.0.0.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "CMakeLists.txt": 5.7.1_vs_6.0.0.

    1 
    2  cmake_minimum_required(VERSION 3.0.2)
    3 
    4  include_directories( ${PROJECT_BINARY_DIR} )
    5  include_directories( ${PROJECT_SRC_DIR}/zuluSafe )
    6 
    7  add_executable( zuluSafe-cli zuluSafe.c zuluwallet.c )
    8 
    9  find_file( GCRYPT_INCLUDE_FILE gcrypt.h )
   10 
   11  find_library( GCRYPT_LIBRARY gcrypt )
   12 
   13  if( NOT GCRYPT_INCLUDE_FILE )
   14 	MESSAGE( FATAL_ERROR "could not find gcrypt header file" )
   15  else()
   16 	MESSAGE( STATUS "found gcrypt header file: ${GCRYPT_INCLUDE_FILE}" )
   17  endif()
   18 
   19  set_target_properties( zuluSafe-cli PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64 -Wextra -Wall -s -fPIE -pthread  -pedantic " )
   20  set_target_properties( zuluSafe-cli PROPERTIES LINK_FLAGS "-pie" )
   21  TARGET_LINK_LIBRARIES( zuluSafe-cli "${GCRYPT_LIBRARY}" )
   22 
   23  install(TARGETS zuluSafe-cli RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE )