libfort/example/CMakeLists.txt
2019-09-21 11:35:47 +03:00

53 lines
1.3 KiB
CMake

add_executable(${PROJECT_NAME}_ex
main.c)
target_link_libraries(${PROJECT_NAME}_ex
fort)
add_executable(${PROJECT_NAME}_simple_table
simple_table.c)
target_link_libraries(${PROJECT_NAME}_simple_table
fort)
add_executable(${PROJECT_NAME}_custom_border_style
custom_border_style.c)
target_link_libraries(${PROJECT_NAME}_custom_border_style
fort)
add_executable(${PROJECT_NAME}_print_styles
print_styles.c)
target_link_libraries(${PROJECT_NAME}_print_styles
fort)
add_executable(${PROJECT_NAME}_math_table
math_table.c)
target_link_libraries(${PROJECT_NAME}_math_table
fort)
add_executable(${PROJECT_NAME}_beautiful_table
beautiful_table.c)
target_link_libraries(${PROJECT_NAME}_beautiful_table
fort)
add_executable(${PROJECT_NAME}_ex_cpp
main.cpp)
target_link_libraries(${PROJECT_NAME}_ex_cpp
fort)
set(${PROJECT_NAME}_examples
${PROJECT_NAME}_ex
${PROJECT_NAME}_simple_table
${PROJECT_NAME}_custom_border_style
${PROJECT_NAME}_print_styles
${PROJECT_NAME}_math_table
${PROJECT_NAME}_beautiful_table
${PROJECT_NAME}_ex_cpp
PARENT_SCOPE)
if(DEFINED FORT_LINK_LIBRARIES)
foreach(exe ${${PROJECT_NAME}_examples})
target_link_libraries(${exe} "${FORT_LINK_LIBRARIES}")
endforeach()
endif()