project(aigo) set(AIGO_SRCS camera.cpp quickcam.cpp settings.cpp state.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(aigo ${AIGO_SRCS}) #SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99") # c99 flag not used now, not supported by visual studio target_link_libraries(aigo ${SDL_LIBRARY} ${SDLIMAGE_LIBRARY} ${OPENGL_LIBRARIES} )