cmake_minimum_required(VERSION 2.8)
project(hello_shared)

add_definitions(-DHELLO_SHARED_PRJ)

set(LIBDIR lib CACHE path "Destination for library")
set(INCLUDEDIR include CACHE path "Destination for headers")

set(hello_shared_src src/hello_shared.cpp)
set(hello_shared_hdr include/hello_shared.hpp)

include_directories(include)

add_library(hello_shared SHARED ${hello_shared_src})

install(TARGETS hello_shared DESTINATION ${LIBDIR})
install(FILES ${hello_shared_hdr} DESTINATION ${INCLUDEDIR})

