CMakeLists.txt 447 B

1234567891011121314151617181920
  1. # libglimg CMakeLists.txt file
  2. #
  3. cmake_minimum_required(VERSION 3.0)
  4. project(LIBGLIMG)
  5. set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c89 -Wall -Werror \
  6. -fdiagnostics-show-location=every-line -pedantic \
  7. -Wfatal-errors")
  8. file(GLOB SOURCES src/*.c)
  9. include_directories(include)
  10. file(GLOB HEADERS include/*.h)
  11. add_library(libglimg ${SOURCES} ${HEADERS})
  12. add_executable(glimgtest test.c ${HEADERS})
  13. target_link_libraries(glimgtest libglimg)