CMakeLists.txt
changeset 397 13fa0546ef87
parent 396 e1a24791d192
equal deleted inserted replaced
396:e1a24791d192 397:13fa0546ef87
    22 if(NOT CMAKE_BUILD_TYPE)
    22 if(NOT CMAKE_BUILD_TYPE)
    23 	message("WARNING: CMAKE_BUILD_TYPE is not defined!\n         Defaulting to CMAKE_BUILD_TYPE=Release. Use ccmake to set a proper value.")
    23 	message("WARNING: CMAKE_BUILD_TYPE is not defined!\n         Defaulting to CMAKE_BUILD_TYPE=Release. Use ccmake to set a proper value.")
    24 	set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
    24 	set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
    25 endif(NOT CMAKE_BUILD_TYPE)
    25 endif(NOT CMAKE_BUILD_TYPE)
    26 
    26 
    27 # include cmake stuff
    27 # Compile-time version script
    28 include ("cmake/FindVersion.cmake")
    28 include ("cmake/BuildVersion.cmake")
    29 
       
    30 # Determine PROJECT_VERSION
       
    31 FindProjectVersion ("${CMAKE_SOURCE_DIR}")
       
    32 
    29 
    33 # skip source code definitions if just building docs
    30 # skip source code definitions if just building docs
    34 if (NOT KG_DOC_ONLY)
    31 if (NOT KG_DOC_ONLY)
    35     add_subdirectory(src)
    32     add_subdirectory(src)
    36     add_subdirectory(data)
    33     add_subdirectory(data)