diff --git a/apps/launcher/CMakeLists.txt b/apps/launcher/CMakeLists.txt index f81870052d..8d2208c9df 100644 --- a/apps/launcher/CMakeLists.txt +++ b/apps/launcher/CMakeLists.txt @@ -35,12 +35,12 @@ set(LAUNCHER_HEADER # Headers that must be pre-processed set(LAUNCHER_UI - ${CMAKE_SOURCE_DIR}/apps/launcher/ui/datafilespage.ui - ${CMAKE_SOURCE_DIR}/apps/launcher/ui/graphicspage.ui - ${CMAKE_SOURCE_DIR}/apps/launcher/ui/mainwindow.ui - ${CMAKE_SOURCE_DIR}/apps/launcher/ui/importpage.ui - ${CMAKE_SOURCE_DIR}/apps/launcher/ui/settingspage.ui - ${CMAKE_SOURCE_DIR}/apps/launcher/ui/directorypicker.ui + ${CMAKE_CURRENT_SOURCE_DIR}/ui/datafilespage.ui + ${CMAKE_CURRENT_SOURCE_DIR}/ui/graphicspage.ui + ${CMAKE_CURRENT_SOURCE_DIR}/ui/mainwindow.ui + ${CMAKE_CURRENT_SOURCE_DIR}/ui/importpage.ui + ${CMAKE_CURRENT_SOURCE_DIR}/ui/settingspage.ui + ${CMAKE_CURRENT_SOURCE_DIR}/ui/directorypicker.ui ${CMAKE_SOURCE_DIR}/components/contentselector/contentselector.ui ) diff --git a/apps/opencs/CMakeLists.txt b/apps/opencs/CMakeLists.txt index 68d5502890..cea2b66331 100644 --- a/apps/opencs/CMakeLists.txt +++ b/apps/opencs/CMakeLists.txt @@ -140,7 +140,7 @@ set (OPENCS_RES ${CMAKE_SOURCE_DIR}/files/opencs/resources.qrc set (OPENCS_UI ${CMAKE_SOURCE_DIR}/components/contentselector/contentselector.ui - ${CMAKE_SOURCE_DIR}/apps/opencs/ui/filedialog.ui + ${CMAKE_CURRENT_SOURCE_DIR}/ui/filedialog.ui ) source_group (openmw-cs FILES main.cpp ${OPENCS_SRC} ${OPENCS_HDR}) diff --git a/apps/wizard/CMakeLists.txt b/apps/wizard/CMakeLists.txt index 943252151f..8c459f4f9c 100644 --- a/apps/wizard/CMakeLists.txt +++ b/apps/wizard/CMakeLists.txt @@ -34,20 +34,20 @@ set(WIZARD_HEADER ) set(WIZARD_UI - ${CMAKE_SOURCE_DIR}/apps/wizard/ui/componentselectionpage.ui - ${CMAKE_SOURCE_DIR}/apps/wizard/ui/conclusionpage.ui - ${CMAKE_SOURCE_DIR}/apps/wizard/ui/existinginstallationpage.ui - ${CMAKE_SOURCE_DIR}/apps/wizard/ui/importpage.ui - ${CMAKE_SOURCE_DIR}/apps/wizard/ui/installationtargetpage.ui - ${CMAKE_SOURCE_DIR}/apps/wizard/ui/intropage.ui - ${CMAKE_SOURCE_DIR}/apps/wizard/ui/languageselectionpage.ui - ${CMAKE_SOURCE_DIR}/apps/wizard/ui/methodselectionpage.ui + ${CMAKE_CURRENT_SOURCE_DIR}/ui/componentselectionpage.ui + ${CMAKE_CURRENT_SOURCE_DIR}/ui/conclusionpage.ui + ${CMAKE_CURRENT_SOURCE_DIR}/ui/existinginstallationpage.ui + ${CMAKE_CURRENT_SOURCE_DIR}/ui/importpage.ui + ${CMAKE_CURRENT_SOURCE_DIR}/ui/installationtargetpage.ui + ${CMAKE_CURRENT_SOURCE_DIR}/ui/intropage.ui + ${CMAKE_CURRENT_SOURCE_DIR}/ui/languageselectionpage.ui + ${CMAKE_CURRENT_SOURCE_DIR}/ui/methodselectionpage.ui ) if (OPENMW_USE_UNSHIELD) set (WIZARD ${WIZARD} installationpage.cpp unshield/unshieldworker.cpp) set (WIZARD_HEADER ${WIZARD_HEADER} installationpage.hpp unshield/unshieldworker.hpp) - set (WIZARD_UI ${WIZARD_UI} ${CMAKE_SOURCE_DIR}/apps/wizard/ui/installationpage.ui) + set (WIZARD_UI ${WIZARD_UI} ${CMAKE_CURRENT_SOURCE_DIR}/ui/installationpage.ui) add_definitions(-DOPENMW_USE_UNSHIELD) endif (OPENMW_USE_UNSHIELD) diff --git a/components/CMakeLists.txt b/components/CMakeLists.txt index e762bd4905..a335f81de0 100644 --- a/components/CMakeLists.txt +++ b/components/CMakeLists.txt @@ -490,7 +490,7 @@ else () ) endif() -set (ESM_UI ${CMAKE_SOURCE_DIR}/components/contentselector/contentselector.ui +set (ESM_UI ${CMAKE_CURRENT_SOURCE_DIR}/contentselector/contentselector.ui ) if (USE_QT)