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

30 lines
669 B
CMake

project(aigolib)
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(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} )