overte/shared/CMakeLists.txt
2013-02-22 13:47:25 -08:00

17 lines
No EOL
482 B
CMake

cmake_minimum_required(VERSION 2.8)
project(shared)
# grab the implemenation and header files
file(GLOB HIFI_SHARED_SRCS src/*.h src/*.cpp)
# create a library and set the property so it can be referenced later
add_library(HifiShared ${HIFI_SHARED_SRCS})
set(HIFI_SHARED_LIBRARY HifiShared)
# link required libraries on UNIX
if (UNIX AND NOT APPLE)
find_package(Threads REQUIRED)
target_link_libraries(HifiShared ${CMAKE_THREAD_LIBS_INIT})
endif (UNIX AND NOT APPLE)