CMakeLists.txt 749 B

12345678910111213141516171819202122232425
  1. cmake_minimum_required(VERSION 3.13)
  2. project(lfsr_deque VERSION 0.1.0)
  3. set(CMAKE_CXX_STANDARD 17)
  4. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
  5. set(CMAKE_CXX_FLAGS_RELEASE "-O3")
  6. set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
  7. set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
  8. set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/static)
  9. include_directories(${CMAKE_SOURCE_DIR}/include)
  10. FIND_PACKAGE( Boost 1.40 COMPONENTS program_options REQUIRED )
  11. INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} )
  12. #file(GLOB SOURCES CONFIGURE_DEPENDS "*.hpp" "${CMAKE_SOURCE_DIR}/*.cpp")
  13. file(GLOB SOURCES src/*.cpp)
  14. # Program
  15. add_executable(lfsr_deque ${SOURCES})
  16. TARGET_LINK_LIBRARIES(lfsr_deque LINK_PUBLIC ${Boost_LIBRARIES} )