############################################## cmake_minimum_required (VERSION 3.5) set (PROJ_NAME "test") project (${PROJ_NAME}) set (CMAKE_CXX_STANDARD 11) set (CXX_STANDARD_REQUIRED ON) set (BUILD_SHARED_LIBS ON) ############################################## # Find dependencies find_package (PythonLibs 3 REQUIRED) find_package (Boost REQUIRED python3 system chrono) ############################################## # Create lib and set properties list (APPEND libTestSrc "test.cpp" "pywrapper.cpp" ) include_directories ( PUBLIC $ ${Boost_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS} ) add_library (test SHARED ${libTestSrc} ) target_link_libraries (test ${PYTHON_LIBRARIES} ${Boost_LIBRARIES} ) ##############################################