file(GLOB SOURCES "*.cpp") file(GLOB HEADERS "*.h") find_package(Threads) add_library(devcore ${SOURCES} ${HEADERS}) target_link_libraries(devcore PUBLIC Boost::boost) target_link_libraries(devcore PRIVATE Threads::Threads)