mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 17:55:36 +02:00
16 lines
No EOL
463 B
CMake
16 lines
No EOL
463 B
CMake
MACRO(SETUP_HIFI_PROJECT TARGET INCLUDE_QT)
|
|
project(${TARGET})
|
|
|
|
# grab the implemenation and header files
|
|
file(GLOB TARGET_SRCS src/*.cpp src/*.h src/*.c)
|
|
|
|
# add the executable
|
|
add_executable(${TARGET} ${TARGET_SRCS})
|
|
|
|
IF (${INCLUDE_QT})
|
|
find_package(Qt5Core REQUIRED)
|
|
qt5_use_modules(${TARGET} Core)
|
|
ENDIF()
|
|
|
|
target_link_libraries(${TARGET} ${QT_LIBRARIES})
|
|
ENDMACRO(SETUP_HIFI_PROJECT _target _include_qt) |