comments in cmake list file

This commit is contained in:
qPCR4vir 2016-06-20 17:10:18 +02:00
parent a591735a2a
commit 8d2d240d62

View File

@ -5,6 +5,13 @@
# Robert Hauck - Enable support for PNG/Freetype
# Qiangqiang Wu - Add biicode support
# Ariel Vina-Rodriguez (qPCR4vir)
#
# Nana uses some build systems: MS-VS solution, MAKE, bakefile, codeblock, etc. manually optimized.
# In the future CMake could be the prefered, and maybe will be used to generate the others and the central nana repo
# will distribute all of them. But by now CMake is just one of them and all the other distributed build system
# files/projects are manually write. This current CMakeList.txt reflect this fact and that is why we don't
# generate here configurated *.h files or explicitly enumerate the sources files: anyway this CM-list
# will be "touched" to force a re-run of cmake.
#https://cmake.org/cmake-tutorial/
#https://cmake.org/cmake/help/v3.3/module/CMakeDependentOption.html?highlight=cmakedependentoption
@ -13,6 +20,8 @@
# It seems that project() defines essential system variables like CMAKE_FIND_LIBRARY_PREFIXES.
# https://bbs.archlinux.org/viewtopic.php?id=84967
project(nana)
cmake_minimum_required(VERSION 2.8)
@ -87,7 +96,7 @@ endif (NANA_CMAKE_NANA_FILESYSTEM_FORCE)
# Compatibility with CMake 3.1
########### Compatibility with CMake 3.1
if(POLICY CMP0054)
# http://www.cmake.org/cmake/help/v3.1/policy/CMP0054.html
cmake_policy(SET CMP0054 OLD)
@ -95,6 +104,9 @@ endif()
add_definitions(-DNANA_IGNORE_CONF)
########### OS
if(WIN32)
add_definitions(-DWIN32)
set(BUILD_FreeMe ON) #"Build FreeMe only on Windows."
@ -136,6 +148,9 @@ if(UNIX)
endif(FREETYPE_FOUND)
endif(UNIX)
############# Optional libraries
#Find PNG
if(NANA_CMAKE_ENABLE_PNG)
add_definitions(-DNANA_ENABLE_PNG)