2007-02-23 18:55:47 +01:00
|
|
|
project(aigolib)
|
2007-02-23 18:17:51 +01:00
|
|
|
|
2007-02-23 18:42:21 +01:00
|
|
|
set(AIGO_SRCS
|
|
|
|
camera.cpp
|
|
|
|
quickcam.cpp
|
2007-03-14 18:02:22 +01:00
|
|
|
staticcam.cpp
|
2007-02-23 18:42:21 +01:00
|
|
|
settings.cpp
|
|
|
|
state.cpp
|
2007-02-26 11:45:05 +01:00
|
|
|
image.cpp
|
2007-03-01 14:18:20 +01:00
|
|
|
mask.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
|
2007-02-23 18:55:47 +01:00
|
|
|
add_library(aigolib ${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:55:47 +01:00
|
|
|
target_link_libraries(aigolib ${SDL_LIBRARY} ${SDLIMAGE_LIBRARY} ${OPENGL_LIBRARIES} )
|
2007-02-23 18:17:51 +01:00
|
|
|
|