Add CMake option to use the legacy UI
This commit is contained in:
parent
53bfbb0cd0
commit
b0814989e1
2 changed files with 9 additions and 0 deletions
|
|
@ -41,6 +41,8 @@ if(PSEMEK_UBSAN)
|
||||||
list(APPEND CMAKE_CXX_FLAGS -fsanitize=undefined)
|
list(APPEND CMAKE_CXX_FLAGS -fsanitize=undefined)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
option(PSEMEK_LEGACY_UI "Use legacy UI library" OFF)
|
||||||
|
|
||||||
add_subdirectory(3rdparty)
|
add_subdirectory(3rdparty)
|
||||||
|
|
||||||
get_directory_property(PSEMEK_PARENT_DIRECTORY PARENT_DIRECTORY)
|
get_directory_property(PSEMEK_PARENT_DIRECTORY PARENT_DIRECTORY)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,12 @@
|
||||||
file(GLOB PSEMEK_LIB_DIRS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/*")
|
file(GLOB PSEMEK_LIB_DIRS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/*")
|
||||||
list(REMOVE_ITEM PSEMEK_LIB_DIRS "CMakeLists.txt")
|
list(REMOVE_ITEM PSEMEK_LIB_DIRS "CMakeLists.txt")
|
||||||
|
|
||||||
|
if(PSEMEK_LEGACY_UI)
|
||||||
|
list(REMOVE_ITEM PSEMEK_LIB_DIRS "ui")
|
||||||
|
else()
|
||||||
|
list(REMOVE_ITEM PSEMEK_LIB_DIRS "ui_legacy")
|
||||||
|
endif()
|
||||||
|
|
||||||
set(PSEMEK_LIBRARIES)
|
set(PSEMEK_LIBRARIES)
|
||||||
|
|
||||||
foreach(lib ${PSEMEK_LIB_DIRS})
|
foreach(lib ${PSEMEK_LIB_DIRS})
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue