Guest User

Untitled

a guest
Jun 19th, 2021
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.88 KB | None | 0 0
  1. cmake_minimum_required(VERSION 3.17)
  2. project(implot)
  3.  
  4. include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
  5. conan_basic_setup(NO_OUTPUT_DIRS)
  6.  
  7. set(
  8.   IMPLOT_SOURCES
  9.   implot/implot.cpp
  10.   implot/implot_demo.cpp
  11.   implot/implot_items.cpp
  12. )
  13.  
  14. option(BUILD_SHARED "" ON)
  15.  
  16. if(BUILD_SHARED)
  17.   message(STATUS SHAAAAAAAAAAAAARRRRREEEEEEEEEEDDDDDDDDDDDDDDDDDDD)
  18.   add_library(implot SHARED ${IMPLOT_SOURCES} ${CONAN_INCLUDE_DIRS_IMGUI}/imgui_internal.h)
  19. else()
  20.   message(STATUS "STATAIC:LIDNV:ODNVDVNSVNDSTATAIC:LIDNV:ODNVDVNSVND")
  21.   add_library(implot STATIC ${IMPLOT_SOURCES} ${CONAN_INCLUDE_DIRS_IMGUI}/imgui_internal.h)
  22. endif()
  23. target_include_directories(implot PRIVATE implot ${CONAN_INCLUDE_DIRS_IMGUI})
  24. target_link_directories(
  25.   implot PRIVATE
  26.   ${CONAN_LIB_DIRS_IMGUI}
  27. )
  28. target_link_libraries(
  29.   implot PRIVATE
  30.   ${CONAN_LIBS_IMGUI}
  31. )
  32. message(STATUS ${CONAN_LIB_DIRS_IMGUI})
Advertisement
Add Comment
Please, Sign In to add comment