summaryrefslogtreecommitdiff
path: root/Userland/Applications/About/CMakeLists.txt
blob: e1e704f6c3ec623129c942fdfa99e20f7fac3b13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
serenity_component(
    About
    REQUIRED
    TARGETS About
)

set(SOURCES
    main.cpp
)

execute_process(COMMAND "git rev-parse --short HEAD" OUTPUT_VARIABLE GIT_COMMIT)
execute_process(COMMAND "git rev-parse --abbrev-ref HEAD" OUTPUT_VARIABLE GIT_BRANCH)
execute_process(COMMAND "git diff-index --quiet HEAD -- && echo tracked || echo untracked" OUTPUT_VARIABLE GIT_CHANGES)

add_definitions(-DGIT_COMMIT="${GIT_COMMIT}" -DGIT_BRANCH="${GIT_BRANCH}" -DGIT_CHANGES="${GIT_CHANGES}")

serenity_bin(About)
target_link_libraries(About LibGUI LibMain)