This repository has been archived on 2024-07-04. You can view files and clone it, but cannot push or open issues or pull requests.
2007-02-23 18:42:21 +01:00
|
|
|
project(aigo)
|
2007-02-23 18:17:51 +01:00
|
|
|
|
2007-02-23 18:42:21 +01:00
|
|
|
set(AIGO_SRCS
|
|
|
|
camera.cpp
|
|
|
|
quickcam.cpp
|
|
|
|
settings.cpp
|
|
|
|
state.cpp
|
2007-02-23 18:17:51 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
#find SDL and its related libraries
|
|
|
|
find_package(SDL REQUIRED)
|
|
|
|
find_package(SDL_image REQUIRED)
|
2007-02-23 18:42:21 +01:00
|
|
|
include_directories( ${SDL_INCLUDE_DIR} ${SDLIMAGE_INCLUDE_DIR} )
|
2007-02-23 18:17:51 +01:00
|
|
|
|
|
|
|
#find OpenGL and GLU
|
|
|
|
find_package(OpenGL REQUIRED)
|
|
|
|
include_directories( ${OPENGL_INCLUDE_DIR} )
|
|
|
|
|
|
|
|
#find GLEW
|
2007-02-23 18:42:21 +01:00
|
|
|
#set(CMAKE_MODULE_PATH ..)
|
|
|
|
#find_package(GLEW REQUIRED)
|
2007-02-23 18:17:51 +01:00
|
|
|
|
2007-02-23 18:42:21 +01:00
|
|
|
#compile the aigo library
|
|
|
|
add_library(aigo ${AIGO_SRCS})
|
2007-02-23 18:17:51 +01:00
|
|
|
#SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
|
|
|
|
# c99 flag not used now, not supported by visual studio
|
|
|
|
|
2007-02-23 18:42:21 +01:00
|
|
|
target_link_libraries(aigo ${SDL_LIBRARY} ${SDLIMAGE_LIBRARY} ${OPENGL_LIBRARIES} )
|
2007-02-23 18:17:51 +01:00
|
|
|
|