rename avatar target to avatar-mixer, add SetupHifiProject macro

This commit is contained in:
Stephen Birarda 2013-04-12 13:08:21 -07:00
parent 67efc12e59
commit e434b06ed9
7 changed files with 25 additions and 18 deletions

View file

@ -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)

View 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})

View file

@ -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})

View 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)