Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 3.17)
- project(implot)
- include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
- conan_basic_setup(NO_OUTPUT_DIRS)
- set(
- IMPLOT_SOURCES
- implot/implot.cpp
- implot/implot_demo.cpp
- implot/implot_items.cpp
- )
- option(BUILD_SHARED "" ON)
- if(BUILD_SHARED)
- message(STATUS SHAAAAAAAAAAAAARRRRREEEEEEEEEEDDDDDDDDDDDDDDDDDDD)
- add_library(implot SHARED ${IMPLOT_SOURCES} ${CONAN_INCLUDE_DIRS_IMGUI}/imgui_internal.h)
- else()
- message(STATUS "STATAIC:LIDNV:ODNVDVNSVNDSTATAIC:LIDNV:ODNVDVNSVND")
- add_library(implot STATIC ${IMPLOT_SOURCES} ${CONAN_INCLUDE_DIRS_IMGUI}/imgui_internal.h)
- endif()
- target_include_directories(implot PRIVATE implot ${CONAN_INCLUDE_DIRS_IMGUI})
- target_link_directories(
- implot PRIVATE
- ${CONAN_LIB_DIRS_IMGUI}
- )
- target_link_libraries(
- implot PRIVATE
- ${CONAN_LIBS_IMGUI}
- )
- message(STATUS ${CONAN_LIB_DIRS_IMGUI})
Advertisement
Add Comment
Please, Sign In to add comment