Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/unit-tests/clar/example/CMakeLists.txt # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / unit-tests / clar / example / CMakeLists.txt` 28 lines ยท 783 bytes Raw Blame History 1 find_package(Python COMPONENTS Interpreter REQUIRED) 2 3 add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/clar.suite" 4 COMMAND "${Python_EXECUTABLE}" "${CMAKE_SOURCE_DIR}/generate.py" --output "${CMAKE_CURRENT_BINARY_DIR}" 5 DEPENDS main.c example.c 6 WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" 7 ) 8 9 add_executable(example) 10 set_target_properties(example PROPERTIES 11 C_STANDARD 90 12 C_STANDARD_REQUIRED ON 13 C_EXTENSIONS OFF 14 ) 15 target_sources(example PRIVATE 16 main.c 17 example.c 18 "${CMAKE_CURRENT_BINARY_DIR}/clar.suite" 19 ) 20 target_compile_definitions(example PRIVATE) 21 target_compile_options(example PRIVATE 22 $,/W4,-Wall> 23 ) 24 target_include_directories(example PRIVATE 25 "${CMAKE_SOURCE_DIR}" 26 "${CMAKE_CURRENT_BINARY_DIR}" 27 ) 28 target_link_libraries(example clar)