diff options
author | Andreas Grois <andi@grois.info> | 2018-03-09 21:36:10 +0100 |
---|---|---|
committer | Andreas Grois <andi@grois.info> | 2018-03-09 21:36:10 +0100 |
commit | 3b734f0d6b9e28c1f2c4ae54e3f46e573e02f4a5 (patch) | |
tree | 444542870666e41594e7b493f625ade81d64f885 /BuddhaTest/CMakeLists.txt |
Initial Commit
Diffstat (limited to 'BuddhaTest/CMakeLists.txt')
-rw-r--r-- | BuddhaTest/CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/BuddhaTest/CMakeLists.txt b/BuddhaTest/CMakeLists.txt new file mode 100644 index 0000000..d58d00a --- /dev/null +++ b/BuddhaTest/CMakeLists.txt @@ -0,0 +1,15 @@ +add_executable(
+ BuddhaTest
+ "src/BuddhaTest.cpp"
+ "src/glad.c"
+ "src/Helpers.cpp"
+)
+
+configure_file("Shaders/BuddhaFragment.glsl" ${CMAKE_CURRENT_BINARY_DIR}/Shaders/BuddhaFragment.glsl)
+configure_file("Shaders/BuddhaCompute.glsl" ${CMAKE_CURRENT_BINARY_DIR}/Shaders/BuddhaCompute.glsl)
+configure_file("Shaders/BuddhaVertex.glsl" ${CMAKE_CURRENT_BINARY_DIR}/Shaders/BuddhaVertex.glsl)
+
+find_package(OpenGL REQUIRED)
+target_include_directories(BuddhaTest PRIVATE "include" ${OPENGL_INCLUDE_DIR})
+target_link_libraries(BuddhaTest glfw ${OPENGL_gl_LIBRARY})
+# on Linux we need to link against libdl. Maybe add id here?
\ No newline at end of file |