disabling BUILD_APPS from top level CMakeLists.txt file

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
russes
Posts: 6
Joined: Fri, 2012-02-24, 02:28
Contact:

disabling BUILD_APPS from top level CMakeLists.txt file

#1 Post by russes »

I would like to disable building applications from the top level CMakeLists.txt file. I can disable BUILD_APPS from the command line, by issuing the following command:

cmake -Wno-dev -DBUILD_APPS:BOOL=OFF -G "Unix Makefiles" ../latest_dcmtk

How do I configure the BUILD_APPS parameter from the top-level CMakeLists.txt file to turn off building applications?

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: disabling BUILD_APPS from top level CMakeLists.txt file

#2 Post by Michael Onken »

Hi,

it works for me by adding in the top level CMakeLists.txt the line

Code: Select all

# Declare project
SET(BUILD_APPS OFF CACHE BOOL "" FORCE)
just after

Code: Select all

# Check the build system
INCLUDE(CMake/dcmtkPrepare.cmake NO_POLICY_SCOPE)
Best,
Michael

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest