File: CMakeLists.txt

package info (click to toggle)
therion 6.3.4-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,544 kB
  • sloc: cpp: 195,273; tcl: 19,779; ansic: 8,434; perl: 1,895; makefile: 1,281; python: 255; asm: 219; sh: 104
file content (25 lines) | stat: -rw-r--r-- 648 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
set(THCHENCDATA_SOURCES
    ASCII.TXT
    CP1250.TXT
    CP1251.TXT
    CP1252.TXT
    CP1253.TXT
    8859-1.TXT
    8859-2.TXT
    8859-5.TXT
    8859-7.TXT
    generate.pl)
    
set(GENERATED_SOURCES
    ${CMAKE_BINARY_DIR}/thchencdata.h
    ${CMAKE_BINARY_DIR}/thchencdata.cxx)

therion_copy_files(${THCHENCDATA_SOURCES})
therion_make_files_lists(${THCHENCDATA_SOURCES})

add_custom_command(OUTPUT ${GENERATED_SOURCES}
                   COMMAND perl generate.pl
                   DEPENDS ${THCHENCDATA_BIN}
                   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})

add_custom_target(generate_thchencdata DEPENDS ${GENERATED_SOURCES})