14 lines
558 B
CMake
14 lines
558 B
CMake
project(cglm)
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
include_directories(${GLIB_INCLUDE_DIRS} ${GTK3_INCLUDE_DIRS} ${CAIRO_INCLUDE_DIRS} ${OPENCL_INCLUDE_DIRS})
|
|
link_directories(${GLIB_LINK_DIRS} ${GTK3_LINK_DIRS} ${CAIRO_LINK_DIRS})
|
|
add_definitions(${GLIB2_CFLAGS_OTHER})
|
|
|
|
aux_source_directory("cglm/src" SOURCES)
|
|
add_library(${PROJECT_NAME} STATIC ${SOURCES})
|
|
add_compile_options(-Wall -std=gnu99 -O3 -Wstrict-aliasing=2 -fstrict-aliasing -pedantic)
|
|
target_include_directories(${PROJECT_NAME} PUBLIC "cglm/include")
|
|
|
|
target_link_libraries(${PROJECT_NAME} m)
|