set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11 -O3") set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin/examples) macro(add_example name) add_executable(${name} ${name}.cpp) target_link_libraries(${name} PUBLIC gctl_ai) endmacro() add_example(ex1) add_example(ex2) add_example(ex_mnist) add_example(ex_mnist2) add_example(ex_mnist3)