claudious

CMakeLists

Aug 3rd, 2020 (edited)
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.64 KB | None | 0 0
  1. cmake_minimum_required(VERSION 3.16)
  2. project(untitled)
  3.  
  4. set(CMAKE_CXX_STANDARD 17)
  5.  
  6. include(FetchContent)
  7. FetchContent_Declare(
  8.         panoptes
  9.         GIT_REPOSITORY https://github.com/neXenio/panoptes.git
  10.         GIT_TAG        master
  11. )
  12. FetchContent_MakeAvailable(panoptes)
  13.  
  14. # Insert definitions in order to use library headers
  15. if (WIN32)
  16.     add_definitions ("-D__WINDOWS__")
  17. endif (WIN32)
  18. if (UNIX)
  19.     if (APPLE)
  20.         add_definitions ("-D__APPLE__")
  21.     else (APPLE)
  22.         add_definitions ("-D__LINUX__")
  23.     endif(APPLE)
  24. endif (UNIX)
  25.  
  26. add_executable(untitled main.cpp)
  27.  
  28. target_link_libraries(untitled PUBLIC PanoptesFW)
Add Comment
Please, Sign In to add comment