From 375799fa79d1af76f33299acc20a11a167a021f8 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 17 Aug 2023 12:32:50 +0200 Subject: project: restructure libraries and build env --- source/lib/CMakeLists.txt | 71 ++++------------------------------------------- 1 file changed, 5 insertions(+), 66 deletions(-) (limited to 'source/lib/CMakeLists.txt') diff --git a/source/lib/CMakeLists.txt b/source/lib/CMakeLists.txt index bf3cd5f..e2bb4b5 100644 --- a/source/lib/CMakeLists.txt +++ b/source/lib/CMakeLists.txt @@ -1,66 +1,5 @@ -find_package("asio") -find_package("Boost") -find_package("JPEG") -find_package("PNG") -find_package("spdlog") -find_package("Threads") - -find_package("PkgConfig" REQUIRED) - -pkg_check_modules("GIO" - REQUIRED - IMPORTED_TARGET - GLOBAL - "gio-2.0" -) - -pkg_check_modules("libmagic" - REQUIRED - IMPORTED_TARGET - GLOBAL - "libmagic" -) - -file(GLOB_RECURSE WANDA_LIB_SOURCES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" CONFIGURE_DEPENDS "**/*.cpp") -file(GLOB_RECURSE WANDA_LIB_HEADERS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" CONFIGURE_DEPENDS "**/*.hpp") - -add_library("wanda") - -target_sources("wanda" PRIVATE - ${WANDA_LIB_SOURCES} -) - -target_sources("wanda" INTERFACE - FILE_SET HEADERS - FILES ${WANDA_LIB_HEADERS} - BASE_DIRS "include" -) - -target_include_directories("wanda" PUBLIC - $ -) - -target_include_directories("wanda" SYSTEM PUBLIC - $ -) - -target_compile_features("wanda" PUBLIC - "cxx_std_20" -) - -target_link_libraries("wanda" PUBLIC - "asio::asio" - "boost::boost" - "JPEG::JPEG" - "PkgConfig::GIO" - "PkgConfig::libmagic" - "PNG::PNG" - "spdlog::spdlog" - "Threads::Threads" -) - -install(TARGETS "wanda" - FILE_SET HEADERS -) - -add_library("wanda::wanda" ALIAS "wanda") +add_subdirectory("control") +add_subdirectory("meta") +add_subdirectory("proto") +add_subdirectory("std_ext") +add_subdirectory("system") -- cgit v1.2.3