mirror of https://github.com/WerWolv/ImHex.git
build: Exclude libraries from main build target in sdk
This commit is contained in:
parent
ebf379f7c1
commit
f03bdc5f45
|
@ -9,7 +9,7 @@ include(ImHexPlugin)
|
|||
|
||||
function(add_subdirectory_if_exists folder)
|
||||
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${folder}/CMakeLists.txt")
|
||||
add_subdirectory("${folder}")
|
||||
add_subdirectory("${folder}" EXCLUDE_FROM_ALL)
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
|
@ -17,7 +17,7 @@ set(IMHEX_EXTERNAL_PLUGIN_BUILD ON PARENT_SCOPE)
|
|||
set(IMHEX_EXTERNAL_PLUGIN_BUILD ON)
|
||||
add_custom_target(imhex_all)
|
||||
|
||||
add_subdirectory(lib/third_party/imgui)
|
||||
add_subdirectory(lib/third_party/imgui EXCLUDE_FROM_ALL)
|
||||
|
||||
set(FMT_INSTALL OFF CACHE BOOL "" FORCE)
|
||||
add_subdirectory_if_exists(lib/third_party/fmt)
|
||||
|
@ -25,10 +25,10 @@ set(FMT_LIBRARIES fmt::fmt-header-only PARENT_SCOPE)
|
|||
|
||||
add_subdirectory_if_exists(lib/third_party/nlohmann_json)
|
||||
|
||||
add_subdirectory(lib/external/libwolv)
|
||||
add_subdirectory(lib/external/libwolv EXCLUDE_FROM_ALL)
|
||||
|
||||
set(LIBPL_ENABLE_CLI OFF)
|
||||
add_subdirectory(lib/external/pattern_language)
|
||||
set(LIBPL_ENABLE_CLI OFF CACHE BOOL "" FORCE)
|
||||
add_subdirectory(lib/external/pattern_language EXCLUDE_FROM_ALL)
|
||||
|
||||
add_subdirectory(lib/libimhex)
|
||||
|
||||
|
|
Loading…
Reference in New Issue