Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

CMakeLists.txt 627 B

1234567891011121314151617181920212223242526
  1. # CMakeLists.txt for pins
  2. project(pins LANGUAGES NONE)
  3. # Source file
  4. set(SRC pins.tex)
  5. # Add custom target to generate PDF
  6. add_custom_target(pins_pdf
  7. COMMAND latex ${SRC}
  8. COMMAND dvipdf ${SRC:.tex=.dvi}
  9. COMMENT "Generating PDF"
  10. WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
  11. )
  12. # Add clean target
  13. add_custom_target(clean_pins
  14. COMMAND rm -f *.dvi *.aux *.log *.ps *.toc *.bak *~
  15. COMMENT "Cleaning pins"
  16. WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
  17. )
  18. # Add dependencies
  19. add_dependencies(pins_pdf clean_pins)
  20. # Install PDF
  21. install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pins.pdf DESTINATION share/pins)