find_package(Boost 1.62 REQUIRED) set(CORE_HEADERS entity.h ) set(CORE_SOURCES entity.cpp ) add_library(core STATIC ${CORE_SOURCES}) target_link_libraries(core Boost::boost)