16 lines
603 B
CMake
16 lines
603 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
cmake_policy(SET CMP0020 NEW)
|
|
|
|
find_package(PIP REQUIRED)
|
|
|
|
add_executable(mutex mutex.cpp)
|
|
target_include_directories(mutex PUBLIC ${PIP_INCLUDES})
|
|
target_link_libraries(mutex ${PIP_LIBRARY} ${PIP_CONCURRENT_LIBRARY})
|
|
|
|
add_executable(mutex_multithread mutex_multithread.cpp)
|
|
target_include_directories(mutex_multithread PUBLIC ${PIP_INCLUDES})
|
|
target_link_libraries(mutex_multithread ${PIP_LIBRARY} ${PIP_CONCURRENT_LIBRARY})
|
|
|
|
add_executable(vectors vectors.cpp)
|
|
target_include_directories(vectors PUBLIC ${PIP_INCLUDES})
|
|
target_link_libraries(vectors ${PIP_LIBRARY}) |