vcpkg/ports/libsigcpp/CMakeLists.txt

65 lines
3.7 KiB
CMake
Raw Normal View History

2017-01-10 19:04:17 +08:00
cmake_minimum_required(VERSION 3.0)
project(libsigc++)
set(SIGCPP_API_VERSION 2.0)
add_definitions(-DSIGC_BUILD)
2017-08-27 18:21:33 +08:00
include_directories(./MSVC_Net2017) # config file for windows is there
2017-01-10 19:04:17 +08:00
include_directories(.)
2017-08-27 18:21:33 +08:00
2017-01-10 19:04:17 +08:00
set(SICGPP_SOURCES
sigc++/connection.cc
2017-01-10 19:08:29 +08:00
sigc++/signal_base.cc
sigc++/trackable.cc
sigc++/functors/slot_base.cc)
2017-01-10 19:04:17 +08:00
add_library(sigc ${SICGPP_SOURCES})
set_target_properties(sigc PROPERTIES OUTPUT_NAME sigc-${SIGCPP_API_VERSION})
install(TARGETS sigc RUNTIME DESTINATION bin ARCHIVE DESTINATION lib)
if(NOT SIGCPP_SKIP_HEADERS)
2017-08-27 18:21:33 +08:00
install(FILES MSVC_Net2017/sigc++config.h DESTINATION include)
2017-01-10 19:04:17 +08:00
install(FILES sigc++/sigc++.h DESTINATION include/sigc++)
install(FILES sigc++/bind.h DESTINATION include/sigc++)
install(FILES sigc++/bind_return.h DESTINATION include/sigc++)
install(FILES sigc++/connection.h DESTINATION include/sigc++)
install(FILES sigc++/limit_reference.h DESTINATION include/sigc++)
2017-08-27 18:21:33 +08:00
install(FILES sigc++/member_method_trait.h DESTINATION include/sigc++)
2017-01-10 19:04:17 +08:00
install(FILES sigc++/reference_wrapper.h DESTINATION include/sigc++)
install(FILES sigc++/retype_return.h DESTINATION include/sigc++)
install(FILES sigc++/signal.h DESTINATION include/sigc++)
install(FILES sigc++/signal_base.h DESTINATION include/sigc++)
install(FILES sigc++/slot.h DESTINATION include/sigc++)
install(FILES sigc++/trackable.h DESTINATION include/sigc++)
install(FILES sigc++/type_traits.h DESTINATION include/sigc++)
install(FILES sigc++/visit_each.h DESTINATION include/sigc++)
2017-08-27 18:21:33 +08:00
install(FILES sigc++/weak_raw_ptr.h DESTINATION include/sigc++)
2017-01-10 19:04:17 +08:00
install(FILES sigc++/adaptors/adaptors.h DESTINATION include/sigc++/adaptors)
2017-08-27 18:21:33 +08:00
install(FILES sigc++/adaptors/adaptor_base.h DESTINATION include/sigc++/adaptors)
2017-01-10 19:04:17 +08:00
install(FILES sigc++/adaptors/adaptor_trait.h DESTINATION include/sigc++/adaptors)
2017-08-27 18:21:33 +08:00
install(FILES sigc++/adaptors/adapts.h DESTINATION include/sigc++/adaptors)
2017-01-10 19:04:17 +08:00
install(FILES sigc++/adaptors/bind.h DESTINATION include/sigc++/adaptors)
install(FILES sigc++/adaptors/bind_return.h DESTINATION include/sigc++/adaptors)
install(FILES sigc++/adaptors/bound_argument.h DESTINATION include/sigc++/adaptors)
install(FILES sigc++/adaptors/compose.h DESTINATION include/sigc++/adaptors)
install(FILES sigc++/adaptors/exception_catch.h DESTINATION include/sigc++/adaptors)
install(FILES sigc++/adaptors/hide.h DESTINATION include/sigc++/adaptors)
install(FILES sigc++/adaptors/retype.h DESTINATION include/sigc++/adaptors)
install(FILES sigc++/adaptors/retype_return.h DESTINATION include/sigc++/adaptors)
install(FILES sigc++/adaptors/track_obj.h DESTINATION include/sigc++/adaptors)
2017-08-27 18:21:33 +08:00
install(FILES sigc++/adaptors/tuple_visitor_visit_each.h DESTINATION include/sigc++/adaptors)
2017-01-10 19:04:17 +08:00
install(FILES sigc++/functors/functors.h DESTINATION include/sigc++/functors)
install(FILES sigc++/functors/functor_trait.h DESTINATION include/sigc++/functors)
install(FILES sigc++/functors/mem_fun.h DESTINATION include/sigc++/functors)
install(FILES sigc++/functors/ptr_fun.h DESTINATION include/sigc++/functors)
install(FILES sigc++/functors/slot.h DESTINATION include/sigc++/functors)
install(FILES sigc++/functors/slot_base.h DESTINATION include/sigc++/functors)
2017-08-27 18:21:33 +08:00
install(FILES sigc++/tuple-utils/tuple_cdr.h DESTINATION include/sigc++/tuple-utils)
install(FILES sigc++/tuple-utils/tuple_end.h DESTINATION include/sigc++/tuple-utils)
install(FILES sigc++/tuple-utils/tuple_for_each.h DESTINATION include/sigc++/tuple-utils)
install(FILES sigc++/tuple-utils/tuple_start.h DESTINATION include/sigc++/tuple-utils)
install(FILES sigc++/tuple-utils/tuple_transform_each.h DESTINATION include/sigc++/tuple-utils)
2017-01-10 19:04:17 +08:00
endif()