CMakeLists.txt 597 B

123456789101112131415161718192021222324252627282930
  1. set(LIBNAME "PocoJSON")
  2. aux_source_directory(src SRCS)
  3. if (NOT POCO_STATIC)
  4. add_definitions(-DJSON_EXPORTS)
  5. endif (NOT POCO_STATIC)
  6. add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
  7. set_target_properties( ${LIBNAME}
  8. PROPERTIES
  9. VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
  10. target_link_libraries( ${LIBNAME} PocoFoundation)
  11. install(
  12. DIRECTORY include/Poco
  13. DESTINATION include
  14. PATTERN ".svn" EXCLUDE
  15. )
  16. install(
  17. TARGETS ${LIBNAME}
  18. DESTINATION lib
  19. )
  20. if (ENABLE_TESTS)
  21. add_subdirectory(samples)
  22. add_subdirectory(testsuite)
  23. endif ()