mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 14:53:01 +02:00
Fixing CMake
This commit is contained in:
parent
3f59446718
commit
156282beaa
1 changed files with 6 additions and 4 deletions
|
@ -1,12 +1,15 @@
|
||||||
set(TARGET_NAME auto-tester)
|
set(TARGET_NAME auto-tester)
|
||||||
setup_hifi_library(Gui Widgets)
|
project(${TARGET_NAME})
|
||||||
|
|
||||||
# Automatically run UIC and MOC. This replaces the older WRAP macros
|
# Automatically run UIC and MOC. This replaces the older WRAP macros
|
||||||
SET(CMAKE_AUTOUIC ON)
|
SET(CMAKE_AUTOUIC ON)
|
||||||
SET(CMAKE_AUTOMOC ON)
|
SET(CMAKE_AUTOMOC ON)
|
||||||
|
|
||||||
|
setup_hifi_project(Widgets)
|
||||||
link_hifi_libraries()
|
link_hifi_libraries()
|
||||||
|
|
||||||
|
set_property(TARGET auto-tester PROPERTY WIN32_EXECUTABLE true)
|
||||||
|
|
||||||
# Find includes in corresponding build directories
|
# Find includes in corresponding build directories
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
|
|
||||||
|
@ -16,10 +19,9 @@ file (GLOB_RECURSE MOC_HEADERS src/*.h)
|
||||||
file (GLOB_RECURSE UIS src/ui/*.ui)
|
file (GLOB_RECURSE UIS src/ui/*.ui)
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set_property(TARGET auto-tester PROPERTY WIN32_EXECUTABLE true)
|
add_executable(PROJECT_NAME WIN32 ${SOURCES} ${MOC_SRCS} ${UI_HEADERS})
|
||||||
add_executable(PROJECT_NAME WIN32 ${SOURCES} ${MOC_SRCS} ${UI_HEADERS})
|
|
||||||
else()
|
else()
|
||||||
add_executable(PROJECT_NAME ${SOURCES} ${MOC_SRCS} ${RES_SOURCES} ${UI_HEADERS})
|
add_executable(PROJECT_NAME ${SOURCES} ${MOC_SRCS} ${RES_SOURCES} ${UI_HEADERS})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(PROJECT_NAME ${QT_LIBRARIES})
|
target_link_libraries(PROJECT_NAME ${QT_LIBRARIES})
|
||||||
|
|
Loading…
Reference in a new issue