2017-10-18 23:07:17 +02:00
|
|
|
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
|
|
|
|
|
|
|
|
# metadata
|
|
|
|
set(META_PROJECT_TYPE library)
|
|
|
|
|
|
|
|
# add project files
|
|
|
|
set(HEADER_FILES
|
2017-10-28 16:23:39 +02:00
|
|
|
json/reflector.h
|
|
|
|
json/reflector-boosthana.h
|
|
|
|
json/serializable.h
|
|
|
|
json/errorhandling.h
|
2017-10-18 23:07:17 +02:00
|
|
|
)
|
|
|
|
set(SRC_FILES
|
|
|
|
)
|
|
|
|
set(TEST_HEADER_FILES
|
|
|
|
)
|
|
|
|
set(TEST_SRC_FILES
|
|
|
|
tests/cppunit.cpp
|
2017-10-23 00:41:10 +02:00
|
|
|
tests/jsonreflector.cpp
|
2017-10-25 19:16:37 +02:00
|
|
|
tests/jsonreflector-boosthana.cpp
|
2017-10-18 23:07:17 +02:00
|
|
|
)
|
2017-10-24 01:00:40 +02:00
|
|
|
set(CMAKE_MODULE_FILES
|
|
|
|
cmake/modules/ReflectionGenerator.cmake
|
|
|
|
)
|
2017-10-18 23:07:17 +02:00
|
|
|
set(DOC_FILES
|
|
|
|
README.md
|
|
|
|
)
|
|
|
|
|
|
|
|
# find c++utilities
|
2017-10-27 18:26:36 +02:00
|
|
|
find_package(c++utilities 4.11.0 REQUIRED)
|
2017-10-18 23:07:17 +02:00
|
|
|
use_cpp_utilities()
|
|
|
|
|
|
|
|
# include modules to apply configuration
|
|
|
|
include(BasicConfig)
|
|
|
|
include(WindowsResources)
|
|
|
|
include(LibraryTarget)
|
|
|
|
include(TestTarget)
|
|
|
|
include(Doxygen)
|
|
|
|
include(ConfigHeader)
|