project(aigolib) set(AIGO_SRCS camera.cpp quickcam.cpp staticcam.cpp settings.cpp state.cpp image.cpp mask.cpp ) #find SDL and its related libraries find_package(SDL REQUIRED) find_package(SDL_image REQUIRED) include_directories( ${SDL_INCLUDE_DIR} ${SDLIMAGE_INCLUDE_DIR} ) #find OpenGL and GLU find_package(OpenGL REQUIRED) include_directories( ${OPENGL_INCLUDE_DIR} ) #find GLEW #set(CMAKE_MODULE_PATH ..) #find_package(GLEW REQUIRED) #compile the aigo library add_library(aigolib ${AIGO_SRCS}) #SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99") # c99 flag not used now, not supported by visual studio target_link_libraries(aigolib ${SDL_LIBRARY} ${SDLIMAGE_LIBRARY} ${OPENGL_LIBRARIES} )