2019-04-21 11:22:48 +02:00
|
|
|
option(FORT_HAVE_WCHAR "Enable wchar support" ON)
|
2019-08-29 08:12:58 +02:00
|
|
|
option(FORT_HAVE_UTF8 "Enable UTF8 support" ON)
|
2019-04-21 11:22:48 +02:00
|
|
|
option(FORT_TEST_BUILD "Export some internal symbols for tests" ON)
|
|
|
|
|
|
|
|
add_library(fort_dev
|
|
|
|
fort_impl.c
|
|
|
|
vector.c
|
|
|
|
string_buffer.c
|
|
|
|
properties.c
|
|
|
|
cell.c
|
|
|
|
row.c
|
|
|
|
table.c
|
|
|
|
fort_utils.c
|
|
|
|
wcwidth.c)
|
|
|
|
|
|
|
|
target_include_directories(fort_dev
|
|
|
|
PUBLIC
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
2019-08-29 08:12:58 +02:00
|
|
|
if(NOT FORT_HAVE_WCHAR)
|
2019-04-21 11:22:48 +02:00
|
|
|
target_compile_definitions(fort_dev
|
|
|
|
PRIVATE
|
2019-08-29 08:12:58 +02:00
|
|
|
-DFT_CONGIG_DISABLE_WCHAR
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT FORT_HAVE_UTF8)
|
|
|
|
target_compile_definitions(fort_dev
|
|
|
|
PRIVATE
|
|
|
|
-DFT_CONGIG_DISABLE_UTF8
|
2019-04-21 11:22:48 +02:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(FORT_TEST_BUILD)
|
|
|
|
target_compile_definitions(fort_dev
|
|
|
|
PRIVATE
|
|
|
|
-DFT_TEST_BUILD=1
|
|
|
|
)
|
|
|
|
endif()
|