mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-07 10:02:24 +02:00
rename avatar target to avatar-mixer, add SetupHifiProject macro
This commit is contained in:
parent
67efc12e59
commit
e434b06ed9
7 changed files with 25 additions and 18 deletions
|
@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8)
|
|||
project(hifi)
|
||||
|
||||
add_subdirectory(space)
|
||||
add_subdirectory(avatar)
|
||||
add_subdirectory(avatar-mixer)
|
||||
add_subdirectory(domain)
|
||||
add_subdirectory(mixer)
|
||||
add_subdirectory(voxel)
|
||||
|
|
15
avatar-mixer/CMakeLists.txt
Normal file
15
avatar-mixer/CMakeLists.txt
Normal file
|
@ -0,0 +1,15 @@
|
|||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
set(TARGET_NAME "avatar-mixer")
|
||||
|
||||
# setup the project
|
||||
include(../cmake/macros/SetupHifiProject.cmake)
|
||||
setup_hifi_project(${TARGET_NAME})
|
||||
|
||||
# link the shared hifi library
|
||||
include(../cmake/macros/LinkHifiLibrary.cmake)
|
||||
link_hifi_library(shared ${TARGET_NAME})
|
||||
|
||||
# link the threads library
|
||||
find_package(Threads REQUIRED)
|
||||
target_link_libraries(${TARGET_NAME} ${CMAKE_THREAD_LIBS_INIT})
|
|
@ -1,17 +0,0 @@
|
|||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
project(avatar)
|
||||
|
||||
# grab the implemenation and header files
|
||||
file(GLOB AVATAR_SRCS src/*.cpp src/*.h)
|
||||
|
||||
# add the executable
|
||||
add_executable(avatar ${AVATAR_SRCS})
|
||||
|
||||
# link the shared hifi library
|
||||
include(../cmake/macros/LinkHifiLibrary.cmake)
|
||||
link_hifi_library(shared avatar)
|
||||
|
||||
# link the threads library
|
||||
find_package(Threads REQUIRED)
|
||||
target_link_libraries(avatar ${CMAKE_THREAD_LIBS_INIT})
|
9
cmake/macros/SetupHifiProject.cmake
Normal file
9
cmake/macros/SetupHifiProject.cmake
Normal file
|
@ -0,0 +1,9 @@
|
|||
MACRO(SETUP_HIFI_PROJECT TARGET)
|
||||
project(${TARGET})
|
||||
|
||||
# grab the implemenation and header files
|
||||
file(GLOB TARGET_SRCS /src/*.cpp src/*.h)
|
||||
|
||||
# add the executable
|
||||
add_executable(${TARGET} ${TARGET_SRCS})
|
||||
ENDMACRO(SETUP_HIFI_PROJECT _target)
|
Loading…
Reference in a new issue