cmake_minimum_required (VERSION 2.6) project (OverloadingInheritance) include_directories("${PROJECT_SOURCE_DIR}") add_executable(classTestP classTestP.cpp) target_link_libraries (classTestP PolygonP) add_library(PolygonP SHARED PolygonP.cpp) install (FILES PolygonP.h DESTINATION include) install (TARGETS PolygonP DESTINATION lib) install (TARGETS classTestP DESTINATION bin)