Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Madman10K authored Dec 7, 2024
1 parent 00a515c commit c217305
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,17 @@ set(CMAKE_CXX_STANDARD 20)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")

if (UBT_COMPILING_FOR_WEB)
set(UBT_TEMPLATES_DIR "${UBT_INSTALL_PREFIX}/Templates/Web")
set(UBT_TEMPLATES_DIR "${CMAKE_SOURCE_DIR}/Templates/Web")
set(UBT_INSTALL OFF)
else()
if (NOT UBT_INSTALL)
set(UBT_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}")
set(UBT_DATA_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}")
set(UBT_DIR "${CMAKE_SOURCE_DIR}")
set(UBT_TEMPLATES_DIR "${UBT_DATA_INSTALL_PREFIX}/Templates/UntitledImGuiFramework")
else()
set(UBT_DIR "${UBT_INSTALL_PREFIX}/UVKBuildTool")
set(UBT_DIR "${UBT_DATA_INSTALL_PREFIX}/UVKBuildTool")
set(UBT_TEMPLATES_DIR "${UBT_DIR}/Templates/UntitledImGuiFramework")
endif ()
set(UBT_TEMPLATES_DIR "${UBT_INSTALL_PREFIX}/Templates/UntitledImGuiFramework")
if (NOT DEFINED UBT_FRAMEWORK_DIR)
set(UBT_FRAMEWORK_DIR "../")
endif()
Expand Down Expand Up @@ -105,4 +106,4 @@ if (NOT UBT_COMPILING_FOR_WEB AND UBT_INSTALL)
ARCHIVE DESTINATION lib64/)
install(TARGETS UVKBuildTool DESTINATION bin/)
install(DIRECTORY Templates/ DESTINATION share/UVKBuildTool/)
endif ()
endif ()

0 comments on commit c217305

Please sign in to comment.