From 40e48dce46f1c0009ee57d7e00def483fda6add6 Mon Sep 17 00:00:00 2001 From: Jordan Halase Date: Tue, 29 Oct 2019 13:07:21 -0500 Subject: Overhaul --- CMakeLists.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..3192c6a --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.2) +project(vkpugltest LANGUAGES C) + +set(pugldir "../../pugl") +set(PUGL_INCLUDE "${pugldir}") +set(PUGL_LIBDIR "${pugldir}/build") +set(PUGL_LIBS "-L${PUGL_LIBDIR} -Wl,-rpath,${PUGL_LIBDIR}") + +include_directories(../pugl) +add_executable(vkpugltest main.c) +#link_directories(/home/jordan/Documents/Hack/pugl/build) +target_link_libraries(vkpugltest ${PUGL_LIBS}) +if (UNIX) + target_link_libraries(vkpugltest pugl_x11 X11 dl) +elseif (WIN32) + target_link_libraries(vkpugltest pugl_win) +endif (UNIX) -- cgit v1.2.1