vcpkg/ports/wxchartdir/CMakeLists.txt

34 lines
1.1 KiB
CMake
Raw Normal View History

2019-08-27 04:31:11 +08:00
cmake_minimum_required(VERSION 3.13)
project(wxchartdir CXX)
set(wxWidgets_EXCLUDE_COMMON_LIBRARIES TRUE)
find_package(wxWidgets REQUIRED COMPONENTS core base)
include(${wxWidgets_USE_FILE})
find_package(chartdir CONFIG REQUIRED)
add_library(wxchartdir STATIC wxdemo/common/wxchartviewer.cpp)
target_include_directories(wxchartdir PUBLIC
$<INSTALL_INTERFACE:include>
)
2023-01-12 15:13:27 +08:00
target_compile_features(wxchartdir PRIVATE cxx_std_11)
2019-08-27 04:31:11 +08:00
target_link_libraries(wxchartdir
PRIVATE ${wxWidgets_LIBRARIES}
PRIVATE chartdir
)
install(TARGETS wxchartdir EXPORT wxchartdir-config
RUNTIME DESTINATION bin
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
)
install(EXPORT wxchartdir-config DESTINATION share/cmake/wxchartdir)
install(FILES wxdemo/common/mondrian.xpm DESTINATION include/wxchartdir)
install(FILES wxdemo/common/wxchartviewer.h DESTINATION include/wxchartdir)
install(FILES wxdemo/common/wxchartviewer_defs.h DESTINATION include/wxchartdir)
install(FILES wxdemo/common/wxchartviewer_version.h DESTINATION include/wxchartdir)
install(FILES wxdemo/common/wxchartviewer_version.rc DESTINATION include/wxchartdir)