CMakeLists.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. ########################################################################
  2. ## Feature registration
  3. ########################################################################
  4. cmake_dependent_option(ENABLE_LIBRARY_APPS "Enable Pothos Library.Apps component" ON "ENABLE_LIBRARY" OFF)
  5. add_feature_info(" Apps" ENABLE_LIBRARY_APPS "Utility application for Pothos library")
  6. if (NOT ENABLE_LIBRARY_APPS)
  7. return()
  8. endif()
  9. ########################################################################
  10. # build PothosUtil
  11. ########################################################################
  12. add_executable(PothosUtil
  13. PothosUtil.cpp
  14. PothosUtilSystemInfo.cpp
  15. PothosUtilModuleInfo.cpp
  16. PothosUtilSelfTests.cpp
  17. PothosUtilPluginTree.cpp
  18. PothosUtilDeviceInfo.cpp
  19. PothosUtilProxyServer.cpp
  20. PothosUtilLoadModule.cpp
  21. PothosUtilDocParse.cpp
  22. PothosUtilRunTopology.cpp
  23. PothosUtilListModules.cpp
  24. PothosUtilProxyEnvironmentInfo.cpp
  25. PothosUtilSIMDFeatures.cpp
  26. PothosUtilGenerateSIMDDispatchers.cpp
  27. PothosUtilListTypeConversions.cpp
  28. )
  29. target_include_directories(PothosUtil PRIVATE ${JSON_HPP_INCLUDE_DIR})
  30. target_link_libraries(PothosUtil PRIVATE Pothos)
  31. install(TARGETS PothosUtil
  32. RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT pothos_runtime
  33. )