Skip to content

Instantly share code, notes, and snippets.

@Keloran
Last active August 29, 2015 14:04
Show Gist options
  • Save Keloran/32bdffe557bcfe3b5cea to your computer and use it in GitHub Desktop.
Save Keloran/32bdffe557bcfe3b5cea to your computer and use it in GitHub Desktop.
the cpp will include the file, the hpp will fail
# GLM
find_package(GLM REQUIRED)
include_directories(${GLM_INCLUDE_DIRS})
link_directories(${GLM_LIBRARY_DIRS})
add_definitions(${GLM_DEFINITIONS})
if (NOT GLM_FOUND)
message(ERROR "GLM Not Found")
endif(NOT GLM_FOUND)
#include <glm/glm.hpp>
#include <glm/glm.hpp>
@evelikov
Copy link

evelikov commented Aug 5, 2014

# GLM
find_package(GLM REQUIRED)
include_directories(${GLM_INCLUDE_DIRS})
add_executable(sample test.cpp)
target_link_libraries(sample ${GLM_LIBRARY_DIRS})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment