haraldhv
/
aigo
Archived
1
0
Fork 0
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.
aigo/lib/CMakeLists.txt

31 lines
680 B
CMake
Raw Normal View History

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
settings.cpp
state.cpp
image.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(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
target_link_libraries(aigolib ${SDL_LIBRARY} ${SDLIMAGE_LIBRARY} ${OPENGL_LIBRARIES} )
2007-02-23 18:17:51 +01:00