refactored code and ported project to cmake
This commit is contained in:
parent
640a5edee2
commit
381bd6acff
13
CMakeLists.txt
Normal file
13
CMakeLists.txt
Normal 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)
|
Loading…
Reference in New Issue
Block a user