refactored code and ported project to cmake

This commit is contained in:
Julian Daube 2017-08-08 20:05:30 +02:00
parent 640a5edee2
commit 381bd6acff

13
CMakeLists.txt Normal file
View File

@ -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)