2019-09-15 10:18:51 +02:00
|
|
|
|
2019-09-21 10:35:47 +02:00
|
|
|
add_executable(${PROJECT_NAME}_simple_table
|
2019-09-22 09:06:05 +02:00
|
|
|
1-simple_table.c)
|
2019-09-21 10:35:47 +02:00
|
|
|
target_link_libraries(${PROJECT_NAME}_simple_table
|
|
|
|
fort)
|
|
|
|
|
2019-09-21 11:06:01 +02:00
|
|
|
add_executable(${PROJECT_NAME}_custom_table
|
2019-09-22 09:06:05 +02:00
|
|
|
2-custom_table.c)
|
2019-09-21 11:06:01 +02:00
|
|
|
target_link_libraries(${PROJECT_NAME}_custom_table
|
|
|
|
fort)
|
|
|
|
|
2019-09-22 09:06:05 +02:00
|
|
|
add_executable(${PROJECT_NAME}_complex_layout
|
|
|
|
3-complex_layout.c)
|
|
|
|
target_link_libraries(${PROJECT_NAME}_complex_layout
|
|
|
|
fort)
|
|
|
|
|
2019-09-21 11:28:48 +02:00
|
|
|
add_executable(${PROJECT_NAME}_fill_table
|
2019-09-22 09:06:05 +02:00
|
|
|
4-fill_table.c)
|
2019-09-21 11:28:48 +02:00
|
|
|
target_link_libraries(${PROJECT_NAME}_fill_table
|
|
|
|
fort)
|
|
|
|
|
2019-09-22 09:06:05 +02:00
|
|
|
add_executable(${PROJECT_NAME}_beautiful_table
|
|
|
|
5-beautiful_table.c)
|
|
|
|
target_link_libraries(${PROJECT_NAME}_beautiful_table
|
2019-09-21 10:35:47 +02:00
|
|
|
fort)
|
|
|
|
|
2019-09-15 10:27:50 +02:00
|
|
|
add_executable(${PROJECT_NAME}_print_styles
|
2019-09-22 09:06:05 +02:00
|
|
|
6-print_styles.c)
|
2019-09-15 10:27:50 +02:00
|
|
|
target_link_libraries(${PROJECT_NAME}_print_styles
|
2019-09-15 10:18:51 +02:00
|
|
|
fort)
|
|
|
|
|
2019-09-22 09:06:05 +02:00
|
|
|
add_executable(${PROJECT_NAME}_custom_border_style
|
|
|
|
7-custom_border_style.c)
|
|
|
|
target_link_libraries(${PROJECT_NAME}_custom_border_style
|
2019-09-21 10:35:47 +02:00
|
|
|
fort)
|
|
|
|
|
2019-09-22 09:06:05 +02:00
|
|
|
add_executable(${PROJECT_NAME}_math_table
|
|
|
|
8-math_table.c)
|
|
|
|
target_link_libraries(${PROJECT_NAME}_math_table
|
2019-09-21 11:06:01 +02:00
|
|
|
fort)
|
|
|
|
|
2019-09-21 11:28:48 +02:00
|
|
|
add_executable(${PROJECT_NAME}_non_ascii_table
|
2019-09-22 09:06:05 +02:00
|
|
|
9-non_ascii_table.c)
|
2019-09-21 11:28:48 +02:00
|
|
|
target_link_libraries(${PROJECT_NAME}_non_ascii_table
|
|
|
|
fort)
|
|
|
|
|
2019-09-21 11:06:01 +02:00
|
|
|
|
|
|
|
|
2019-09-21 10:35:47 +02:00
|
|
|
|
2019-09-22 09:18:15 +02:00
|
|
|
add_executable(${PROJECT_NAME}_simple_table_cpp
|
|
|
|
1-simple_table.cpp)
|
|
|
|
target_link_libraries(${PROJECT_NAME}_simple_table_cpp
|
|
|
|
fort)
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME}_custom_table_cpp
|
|
|
|
2-custom_table.cpp)
|
|
|
|
target_link_libraries(${PROJECT_NAME}_custom_table_cpp
|
|
|
|
fort)
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME}_complex_layout_cpp
|
|
|
|
3-complex_layout.cpp)
|
|
|
|
target_link_libraries(${PROJECT_NAME}_complex_layout_cpp
|
|
|
|
fort)
|
|
|
|
|
2019-09-22 09:27:47 +02:00
|
|
|
add_executable(${PROJECT_NAME}_fill_table_cpp
|
|
|
|
4-fill_table.cpp)
|
|
|
|
target_link_libraries(${PROJECT_NAME}_fill_table_cpp
|
|
|
|
fort)
|
|
|
|
|
2019-10-06 09:38:42 +02:00
|
|
|
add_executable(${PROJECT_NAME}_beautiful_table_cpp
|
|
|
|
5-beautiful_table.cpp)
|
|
|
|
target_link_libraries(${PROJECT_NAME}_beautiful_table_cpp
|
|
|
|
fort)
|
|
|
|
|
2019-09-28 10:02:34 +02:00
|
|
|
add_executable(${PROJECT_NAME}_non_ascii_table_cpp
|
|
|
|
9-non_ascii_table.cpp)
|
|
|
|
target_link_libraries(${PROJECT_NAME}_non_ascii_table_cpp
|
|
|
|
fort)
|
|
|
|
|
|
|
|
|
2019-09-21 09:38:56 +02:00
|
|
|
set(${PROJECT_NAME}_examples
|
2019-09-21 10:35:47 +02:00
|
|
|
${PROJECT_NAME}_simple_table
|
2019-09-21 11:06:01 +02:00
|
|
|
${PROJECT_NAME}_custom_table
|
2019-09-21 11:28:48 +02:00
|
|
|
${PROJECT_NAME}_fill_table
|
2019-09-21 10:35:47 +02:00
|
|
|
${PROJECT_NAME}_custom_border_style
|
2019-09-21 09:38:56 +02:00
|
|
|
${PROJECT_NAME}_print_styles
|
2019-09-21 10:05:16 +02:00
|
|
|
${PROJECT_NAME}_math_table
|
2019-09-21 10:35:47 +02:00
|
|
|
${PROJECT_NAME}_beautiful_table
|
2019-09-21 11:06:01 +02:00
|
|
|
${PROJECT_NAME}_complex_layout
|
2019-09-21 11:28:48 +02:00
|
|
|
${PROJECT_NAME}_non_ascii_table
|
2019-09-22 09:18:15 +02:00
|
|
|
|
|
|
|
${PROJECT_NAME}_simple_table_cpp
|
|
|
|
${PROJECT_NAME}_custom_table_cpp
|
2019-09-22 09:27:47 +02:00
|
|
|
${PROJECT_NAME}_complex_layout_cpp
|
|
|
|
${PROJECT_NAME}_fill_table_cpp
|
2019-10-06 09:38:42 +02:00
|
|
|
${PROJECT_NAME}_beautiful_table_cpp
|
2019-09-28 10:02:34 +02:00
|
|
|
${PROJECT_NAME}_non_ascii_table_cpp
|
2019-09-21 09:38:56 +02:00
|
|
|
PARENT_SCOPE)
|
|
|
|
|
2019-09-15 10:18:51 +02:00
|
|
|
if(DEFINED FORT_LINK_LIBRARIES)
|
2019-09-21 09:38:56 +02:00
|
|
|
foreach(exe ${${PROJECT_NAME}_examples})
|
|
|
|
target_link_libraries(${exe} "${FORT_LINK_LIBRARIES}")
|
|
|
|
endforeach()
|
2019-09-15 10:18:51 +02:00
|
|
|
endif()
|