CMakeLists.txt (455B)
1 include_directories ( 2 "${PROJECT_SOURCE_DIR}/include" 3 "${PROJECT_SOURCE_DIR}/config" 4 ) 5 6 add_executable(flatcc_cli 7 flatcc_cli.c 8 ) 9 10 target_link_libraries(flatcc_cli 11 flatcc 12 ) 13 14 # Rename because the libflatcc library and the flatcc executable would 15 # conflict if they had the same target name `flatcc`. 16 set_target_properties(flatcc_cli PROPERTIES OUTPUT_NAME flatcc) 17 18 if (FLATCC_INSTALL) 19 install(TARGETS flatcc_cli DESTINATION bin) 20 endif()