File: CMakeLists.txt

package info (click to toggle)
graphite2 1.3.14-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,588 kB
  • sloc: cpp: 14,738; cs: 1,998; python: 1,737; ansic: 1,673; perl: 184; xml: 123; sh: 104; makefile: 62
file content (15 lines) | stat: -rw-r--r-- 626 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CMAKE_MINIMUM_REQUIRED(VERSION 3.16)
project(jsontest)
include(Graphite)
include_directories(${graphite2_core_SOURCE_DIR})

if  (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
    add_definitions(-D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -DUNICODE)
endif()


add_executable(jsontest jsontest.cpp ${graphite2_core_SOURCE_DIR}/json.cpp)

add_test(NAME jsontest COMMAND $<TARGET_FILE:jsontest> jsontest.log)
add_test(NAME jsontestOutput COMMAND ${CMAKE_COMMAND} -E compare_files ${PROJECT_BINARY_DIR}/jsontest.log ${testing_SOURCE_DIR}/standards/jsontest.log)
set_tests_properties(jsontestOutput PROPERTIES DEPENDS jsontest)