view CMakeLists.txt @ 527:8f8c32f102f1

Zip: resurrection
author David Demelier <markand@malikania.fr>
date Wed, 01 Jun 2016 17:36:52 +0200
parents b26d8be94adb
children 33f98fda1884
line wrap: on
line source

#
# CMakeLists.txt -- code building for common code
#
# Copyright (c) 2013-2016 David Demelier <markand@malikania.fr>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#

cmake_minimum_required(VERSION 3.5)
project(code)

include(${code_SOURCE_DIR}/cmake/CodeDefineModule.cmake)

add_subdirectory(extern)
enable_testing()

# Doxygen target.
find_package(Doxygen)

if (DOXYGEN_FOUND)
	configure_file(
		${CMAKE_SOURCE_DIR}/cmake/Doxyfile.in
		${CMAKE_BINARY_DIR}/Doxyfile
	)

	add_custom_target(
		doxygen ALL
		COMMENT "Generating doxygen documentation"
		COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
		WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
		VERBATIM
	)
endif ()

add_subdirectory(modules/base64)
add_subdirectory(modules/dynlib)
add_subdirectory(modules/fs)
add_subdirectory(modules/hash)
add_subdirectory(modules/ini)
add_subdirectory(modules/js)
add_subdirectory(modules/json)
add_subdirectory(modules/net)
add_subdirectory(modules/options)
add_subdirectory(modules/unicode)
add_subdirectory(modules/xdg)
add_subdirectory(modules/zip)