You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

27 regels
627 B

  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)