2021-06-13 22:38:48 +02:00
|
|
|
if ((CMAKE_MAJOR_VERSION LESS 3) OR (CMAKE_VERSION VERSION_LESS "3.0.2"))
|
|
|
|
message(FATAL_ERROR "CMake >= 3.0.2 is required")
|
|
|
|
endif()
|
2018-12-31 20:04:05 +01:00
|
|
|
|
|
|
|
#SOURCE SETS
|
|
|
|
set(TDTL_SOURCE
|
|
|
|
td/tl/tl_config.cpp
|
|
|
|
td/tl/tl_core.cpp
|
|
|
|
td/tl/tl_file_outputer.cpp
|
2018-03-16 14:33:27 +01:00
|
|
|
td/tl/tl_file_utils.cpp
|
2018-12-31 20:04:05 +01:00
|
|
|
td/tl/tl_generate.cpp
|
|
|
|
td/tl/tl_outputer.cpp
|
|
|
|
td/tl/tl_string_outputer.cpp
|
|
|
|
td/tl/tl_writer.cpp
|
|
|
|
|
|
|
|
td/tl/tl_config.h
|
|
|
|
td/tl/tl_core.h
|
|
|
|
td/tl/tl_file_outputer.h
|
2018-03-16 14:33:27 +01:00
|
|
|
td/tl/tl_file_utils.h
|
2018-12-31 20:04:05 +01:00
|
|
|
td/tl/tl_generate.h
|
|
|
|
td/tl/tl_outputer.h
|
|
|
|
td/tl/tl_simple.h
|
|
|
|
td/tl/tl_simple_parser.h
|
|
|
|
td/tl/tl_string_outputer.h
|
|
|
|
td/tl/tl_writer.h
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(tdtl STATIC ${TDTL_SOURCE})
|
|
|
|
target_include_directories(tdtl PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
|
|
|
|
#TODO
|
|
|
|
#target_compile_options(tdtl PRIVATE "-std=c++03")
|