From 381bd6acffbc5ffc16558311c17f0c7a71bb32a9 Mon Sep 17 00:00:00 2001 From: Julian Daube Date: Tue, 8 Aug 2017 20:05:30 +0200 Subject: [PATCH] refactored code and ported project to cmake --- CMakeLists.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..9528306 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,13 @@ +cmake_minimum_required(VERSION 3.0.0) +project(nhtml C) + +add_subdirectory(src) +add_executable(nhtmlc ${SOURCE}) +target_include_directories(nhtmlc PUBLIC inc) + +if (CMAKE_BUILD_TYPE MATCHES "DEBUG") + message("debug") + target_compile_definitions(nhtmlc PUBLIC DEBUG) +endif (CMAKE_BUILD_TYPE MATCHES "DEBUG") + +target_link_libraries(nhtmlc)