Skip to content

Commit 2cc95fc

Browse files
committed
cmake: add prefixes compile definition
We have reached 700 commits!!! What a milestone
1 parent 65ef7ba commit 2cc95fc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ set(MANPREFIX "${CMAKE_INSTALL_PREFIX}/share/man" CACHE PATH "Man page installat
100100
set(APPPREFIX "${CMAKE_INSTALL_PREFIX}/share/applications" CACHE PATH "Application desktop file directory")
101101
set(LOCALEDIR "${CMAKE_INSTALL_PREFIX}/share/locale" CACHE PATH "Locale files directory")
102102
set(ICONPREFIX "${CMAKE_INSTALL_PREFIX}/share/pixmaps" CACHE PATH "Icon installation directory")
103+
target_compile_definitions(${TARGET_NAME} PRIVATE
104+
MANPREFIX="${MANPREFIX}"
105+
APPPREFIX="${APPPREFIX}"
106+
LOCALEDIR="${LOCALEDIR}"
107+
ICONPREFIX="${ICONPREFIX}"
108+
)
103109

104110
# Install executable
105111
install(TARGETS ${TARGET_NAME}

0 commit comments

Comments
 (0)