add reference to bluelib io module
This commit is contained in:
@@ -17,6 +17,7 @@ target_link_libraries(ec3
|
|||||||
Bluelib::Object
|
Bluelib::Object
|
||||||
Bluelib::Term
|
Bluelib::Term
|
||||||
Bluelib::Cmd
|
Bluelib::Cmd
|
||||||
|
Bluelib::Io
|
||||||
${ZSTD_LIBRARY})
|
${ZSTD_LIBRARY})
|
||||||
|
|
||||||
target_include_directories(ec3 PRIVATE ${ZSTD_INCLUDE_DIR})
|
target_include_directories(ec3 PRIVATE ${ZSTD_INCLUDE_DIR})
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ if (Bluelib_STATIC)
|
|||||||
set(_lib_suffix "-s")
|
set(_lib_suffix "-s")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
set(supported_components Core Object Term Cmd)
|
set(supported_components Core Object Term Cmd Io)
|
||||||
set(components ${Bluelib_FIND_COMPONENTS})
|
set(components ${Bluelib_FIND_COMPONENTS})
|
||||||
string(REPLACE ";" ", " supported_components_string_list "${supported_components}")
|
string(REPLACE ";" ", " supported_components_string_list "${supported_components}")
|
||||||
|
|
||||||
@@ -123,7 +123,7 @@ if (Bluelib_FOUND)
|
|||||||
message(FATAL_ERROR "Bluelib: Module 'Object' depends on 'Core', which was not specified in find_package()")
|
message(FATAL_ERROR "Bluelib: Module 'Object' depends on 'Core', which was not specified in find_package()")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
#target_link_libraries(Bluelib::Object INTERFACE Bluelib::Core)
|
target_link_libraries(Bluelib::Object INTERFACE Bluelib::Core)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if ("${component}" STREQUAL "Term")
|
if ("${component}" STREQUAL "Term")
|
||||||
@@ -135,7 +135,7 @@ if (Bluelib_FOUND)
|
|||||||
message(FATAL_ERROR "Bluelib: Module 'Term' depends on 'Object', which was not specified in find_package()")
|
message(FATAL_ERROR "Bluelib: Module 'Term' depends on 'Object', which was not specified in find_package()")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
#target_link_libraries(Bluelib::Term INTERFACE Bluelib::Core Bluelib::Object)
|
target_link_libraries(Bluelib::Term INTERFACE Bluelib::Core Bluelib::Object)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if ("${component}" STREQUAL "Cmd")
|
if ("${component}" STREQUAL "Cmd")
|
||||||
@@ -151,7 +151,19 @@ if (Bluelib_FOUND)
|
|||||||
message(FATAL_ERROR "Bluelib: Module 'Cmd' depends on 'Term', which was not specified in find_package()")
|
message(FATAL_ERROR "Bluelib: Module 'Cmd' depends on 'Term', which was not specified in find_package()")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
#target_link_libraries(Bluelib::Cmd INTERFACE Bluelib::Core Bluelib::Object Bluelib::Term)
|
target_link_libraries(Bluelib::Cmd INTERFACE Bluelib::Core Bluelib::Object Bluelib::Term)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
if ("${component}" STREQUAL "Io")
|
||||||
|
if (NOT TARGET Bluelib::Core)
|
||||||
|
message(FATAL_ERROR "Bluelib: Module 'Io' depends on 'Core', which was not specified in find_package()")
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
if (NOT TARGET Bluelib::Object)
|
||||||
|
message(FATAL_ERROR "Bluelib: Module 'Io' depends on 'Object', which was not specified in find_package()")
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
target_link_libraries(Bluelib::Io INTERFACE Bluelib::Core Bluelib::Object)
|
||||||
endif ()
|
endif ()
|
||||||
endforeach (component)
|
endforeach (component)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user