1
0
Fork 0
libfort/examples/CMakeLists.txt

73 lines
1.8 KiB
CMake
Raw Normal View History

2019-09-15 10:18:51 +02:00
2019-09-21 10:35:47 +02:00
add_executable(${PROJECT_NAME}_simple_table
simple_table.c)
target_link_libraries(${PROJECT_NAME}_simple_table
fort)
2019-09-21 11:06:01 +02:00
add_executable(${PROJECT_NAME}_custom_table
custom_table.c)
target_link_libraries(${PROJECT_NAME}_custom_table
fort)
2019-09-21 11:28:48 +02:00
add_executable(${PROJECT_NAME}_fill_table
fill_table.c)
target_link_libraries(${PROJECT_NAME}_fill_table
fort)
2019-09-21 10:35:47 +02:00
add_executable(${PROJECT_NAME}_custom_border_style
custom_border_style.c)
target_link_libraries(${PROJECT_NAME}_custom_border_style
fort)
2019-09-15 10:27:50 +02:00
add_executable(${PROJECT_NAME}_print_styles
2019-09-15 10:18:51 +02:00
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-21 10:05:16 +02:00
add_executable(${PROJECT_NAME}_math_table
math_table.c)
target_link_libraries(${PROJECT_NAME}_math_table
fort)
2019-09-21 10:35:47 +02:00
add_executable(${PROJECT_NAME}_beautiful_table
beautiful_table.c)
target_link_libraries(${PROJECT_NAME}_beautiful_table
fort)
2019-09-21 11:06:01 +02:00
add_executable(${PROJECT_NAME}_complex_layout
complex_layout.c)
target_link_libraries(${PROJECT_NAME}_complex_layout
fort)
2019-09-21 11:28:48 +02:00
add_executable(${PROJECT_NAME}_non_ascii_table
non_ascii_table.c)
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-15 10:18:51 +02:00
add_executable(${PROJECT_NAME}_ex_cpp
main.cpp)
target_link_libraries(${PROJECT_NAME}_ex_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-21 09:38:56 +02:00
${PROJECT_NAME}_ex_cpp
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()