12345678910111213141516171819202122232425 |
- cmake_minimum_required(VERSION 3.13)
- project(lfsr_deque VERSION 0.1.0)
- set(CMAKE_CXX_STANDARD 17)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
- set(CMAKE_CXX_FLAGS_RELEASE "-O3")
- set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
- set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
- set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/static)
- include_directories(${CMAKE_SOURCE_DIR}/include)
- FIND_PACKAGE( Boost 1.40 COMPONENTS program_options REQUIRED )
- INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} )
- #file(GLOB SOURCES CONFIGURE_DEPENDS "*.hpp" "${CMAKE_SOURCE_DIR}/*.cpp")
- file(GLOB SOURCES src/*.cpp)
- # Program
- add_executable(lfsr_deque ${SOURCES})
- TARGET_LINK_LIBRARIES(lfsr_deque LINK_PUBLIC ${Boost_LIBRARIES} )
|