1234567891011121314151617181920 |
- # libglimg CMakeLists.txt file
- #
- cmake_minimum_required(VERSION 3.0)
- project(LIBGLIMG)
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c89 -Wall -Werror \
- -fdiagnostics-show-location=every-line -pedantic \
- -Wfatal-errors")
- file(GLOB SOURCES src/*.c)
- include_directories(include)
- file(GLOB HEADERS include/*.h)
- add_library(libglimg ${SOURCES} ${HEADERS})
- add_executable(glimgtest test.c ${HEADERS})
- target_link_libraries(glimgtest libglimg)
|