add_library(attachmentSupport STATIC attachmentSupport.cpp ) set_target_properties(attachmentSupport PROPERTIES POSITION_INDEPENDENT_CODE ON ) target_include_directories(attachmentSupport PUBLIC ${Boost_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/include ${CMAKE_BINARY_DIR}/include )