Commit 99aff2cd authored by Andreas Neu's avatar Andreas Neu

Changed makefile to inlcude the headers and that acgl will automatically build...

Changed makefile to inlcude the headers and that acgl will automatically build all libraries by default.
parent f6073158
......@@ -15,11 +15,11 @@ INCLUDE(${CMAKE_SOURCE_DIR}/cmake/GlobalAndLocalExternACGL.txt)
# OpenGL Support
IF(NOT DEFINED OPENGL_SUPPORT)
IF(NOT DEFINED OPENGL_SUPPORT_CORE_4_0)
SET(OPENGL_SUPPORT_CORE_4_0 FALSE CACHE BOOL "")
SET(OPENGL_SUPPORT_CORE_4_0 TRUE CACHE BOOL "")
ENDIF()
IF(NOT DEFINED OPENGL_SUPPORT_ES_2_1)
SET(OPENGL_SUPPORT_ES_2_1 FALSE CACHE BOOL "")
SET(OPENGL_SUPPORT_ES_2_1 TRUE CACHE BOOL "")
ENDIF()
IF(OPENGL_SUPPORT_CORE_4_0)
SET(OPENGL_SUPPORT_LIST ${OPENGL_SUPPORT_LIST} GL_CORE_4_0)
......@@ -52,6 +52,7 @@ FOREACH(OPENGL_SUPPORT ${OPENGL_SUPPORT_LIST} )
# Find all used files of certain file-types
FILE(GLOB_RECURSE SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cc")
FILE(GLOB_RECURSE INCLUDE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/*.hh")
# Add ACGL to the include path
INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/include")
......@@ -80,7 +81,7 @@ FOREACH(OPENGL_SUPPORT ${OPENGL_SUPPORT_LIST} )
################################################################################
# Define the Project, add all required sources and dependencies to it
ADD_LIBRARY(AC${OPENGL_SUPPORT}${COMPILE_POSTFIX} STATIC ${SOURCE_FILES})
ADD_LIBRARY(AC${OPENGL_SUPPORT}${COMPILE_POSTFIX} STATIC ${SOURCE_FILES} ${INCLUDE_FILES})
TARGET_LINK_LIBRARIES(AC${OPENGL_SUPPORT}${COMPILE_POSTFIX} ${LIBRARIES})
ENDFOREACH()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment