CMakeLists.txt 505 B

12345678910111213141516171819
  1. cmake_minimum_required(VERSION 3.1)
  2. project(fcryptor)
  3. find_package(Boost REQUIRED)
  4. find_library(BOOST_FILESYSTEM boost_filesystem)
  5. find_library(BOOST_PROGRAM_OPTIONS boost_program_options)
  6. file(GLOB SRC_PATHS src/*.cpp)
  7. set (SOURCES ${SRC_PATHS})
  8. set (CMAKE_CXX_STANDART 17)
  9. set (CMAKE_CXX_STANDARD_REQUIRED on)
  10. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++17")
  11. add_executable(${PROJECT_NAME} ${SOURCES})
  12. target_link_libraries(${PROJECT_NAME} ${BOOST_FILESYSTEM} ${BOOST_PROGRAM_OPTIONS})