[Kde-games-devel] git conversion kmahjongg

Stefan Majewsky stefan.majewsky at googlemail.com
Wed Mar 14 21:20:54 UTC 2012


On Wed, Mar 14, 2012 at 1:51 AM, Frederik Schwarzer <schwarzer at kde.org> wrote:
> Defining a variable in the
> kdegames/CMakeLists.txt and looking for it in the games's cmake files
> sounds right.

How about:

if (${CMAKE_CURRENT_SOURCE_DIR} EQUALS ${PROJECT_SOURCE_DIR})

Not sure about the exact syntax of EQUALS, but that's the idea.
${PROJECT_SOURCE_DIR} is the dir which you gave to CMake.

Greetings
Stefan


More information about the kde-games-devel mailing list