CMakeLists.txt 443 B

1234567891011121314151617181920212223
  1. cmake_minimum_required(VERSION 2.8.12)
  2. project(yariv)
  3. set(SOURCES
  4. "main.c"
  5. )
  6. add_executable(
  7. yariv_pack
  8. ${SOURCES}
  9. )
  10. if("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")
  11. add_definitions(/Wall /WX /wd4514)
  12. #target_link_libraries(yariv_pack)
  13. elseif("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
  14. add_definitions(-Wall -Wextra)
  15. #target_link_libraries(yariv_pack)
  16. else()
  17. message(WARNING "Unknown compiler '${CMAKE_C_COMPILER_ID}'!")
  18. endif()