Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 3.5)
- project(intersect_segments LANGUAGES CXX)
- set(CMAKE_CXX_STANDARD 17)
- set(CMAKE_CXX_STANDARD_REQUIRED ON)
- add_library(segmentslib
- src/segments_lib/segments.cpp
- src/segments_lib/segments.h)
- include_directories(${CMAKE_SOURCE_DIR}/src/segments_lib)
- link_directories(${CMAKE_SOURCE_DIR}/src/segments_lib)
- add_executable(intersect_segments src/main.cpp)
- set_target_properties(intersect_segments PROPERTIES
- CXX_STANDARD 17
- CXX_STANDARD_REQUIRED YES
- CXX_EXTENSIONS YES)
- add_dependencies(intersect_segments segmentslib)
- target_link_libraries(intersect_segments segmentslib)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement