CMakeLists.txt
changeset 395 91d96387b359
parent 374 1862c5f2cfc3
child 396 e1a24791d192
equal deleted inserted replaced
394:82def222fe7d 395:91d96387b359
    30 if(NOT CMAKE_BUILD_TYPE)
    30 if(NOT CMAKE_BUILD_TYPE)
    31 	message("WARNING: CMAKE_BUILD_TYPE is not defined!\n         Defaulting to CMAKE_BUILD_TYPE=Release. Use ccmake to set a proper value.")
    31 	message("WARNING: CMAKE_BUILD_TYPE is not defined!\n         Defaulting to CMAKE_BUILD_TYPE=Release. Use ccmake to set a proper value.")
    32 	set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
    32 	set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
    33 endif(NOT CMAKE_BUILD_TYPE)
    33 endif(NOT CMAKE_BUILD_TYPE)
    34 
    34 
    35 add_subdirectory(src)
    35 # skip source code definitions if just building docs
    36 add_subdirectory(data)
    36 if (NOT KG_DOC_ONLY)
       
    37     add_subdirectory(src)
       
    38     add_subdirectory(data)
       
    39 endif (NOT KG_DOC_ONLY)
       
    40 
    37 add_subdirectory(doc)
    41 add_subdirectory(doc)
    38 
    42