Advertisement
RedWheelBarrow

cpputils

Oct 16th, 2022 (edited)
1,121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 1.71 KB | Source Code | 0 0
  1. cmake_minimum_required(VERSION 3.8)
  2.  
  3. project(cpputils)
  4.  
  5. set(CMAKE_CXX_STANDARD 20)
  6. set(CMAKE_CXX_STANDARD_REQUIRED ON)
  7.  
  8. set(SOURCES # Files
  9.             src/cpputils/files/files.cpp
  10.            
  11.             # Logger
  12.             src/cpputils/logger/logger.cpp
  13.            
  14.             # Exceptions
  15.             src/cpputils/exceptions/exception.cpp
  16.             src/cpputils/exceptions/runtimeexception/runtimeexception.cpp
  17.            
  18.             # Encryptors
  19.             src/cpputils/encryptors/encryptors.cpp
  20.             src/cpputils/encryptors/abstract/abstractencryptor.cpp
  21.             src/cpputils/encryptors/aes256encryptor/aes256encryptor.cpp
  22.             src/cpputils/encryptors/aes256encryptor/aes.cpp
  23.            
  24.             # Synchronizers
  25.             src/cpputils/synchronizers/synchronizers.cpp
  26.             src/cpputils/synchronizers/countdownlatch/countdownlatch.cpp
  27. )
  28.  
  29. set(HEADERS # Files
  30.             src/cpputils/files/files.h
  31.  
  32.             # Logger
  33.             src/cpputils/logger/logger.h
  34.  
  35.             # Serialization
  36.             src/cpputils/serialization/serializable.h
  37.            
  38.             # Exceptions
  39.             src/cpputils/exceptions/exception.h
  40.             src/cpputils/exceptions/exceptions.h
  41.             src/cpputils/exceptions/exceptiontype.h
  42.             src/cpputils/exceptions/runtimeexception/runtimeexception.h
  43.            
  44.             # Encryptors
  45.             src/cpputils/encryptors/encryptor.h
  46.             src/cpputils/encryptors/encryptors.h
  47.             src/cpputils/encryptors/abstract/abstractencryptor.h
  48.             src/cpputils/encryptors/aes256encryptor/aes256encryptor.h
  49.             src/cpputils/encryptors/aes256encryptor/aes.h
  50.            
  51.             # Synchronizers
  52.             src/cpputils/synchronizers/synchronizers.h
  53.             src/cpputils/synchronizers/countdownlatch/countdownlatch.h
  54.            
  55.             # ThreadPool
  56.             src/cpputils/threadpool/threadpool.h
  57. )
  58.  
  59. add_library(${PROJECT_NAME} STATIC ${HEADERS} ${SOURCES})
  60.  
  61. target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement