From 0fabac14a852abc8889211cae6dc4d2321fced28 Mon Sep 17 00:00:00 2001 From: sippeangelo Date: Tue, 20 Oct 2015 15:48:13 +0200 Subject: [PATCH] fixup! CMAKE Conditional compilation against DirectX and OpenGL targets --- src/game/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/CMakeLists.txt b/src/game/CMakeLists.txt index 9db3ab2..b1b3121 100755 --- a/src/game/CMakeLists.txt +++ b/src/game/CMakeLists.txt @@ -113,7 +113,7 @@ set(SOURCE_FILES ) set(LIBRARIES -${OPENGL_LIBRARIES} + ${OPENGL_LIBRARIES} ${GLEW_LIBRARIES} ${GLFW_LIBRARIES} ${Boost_LIBRARIES} @@ -146,6 +146,9 @@ if(CMAKE_COMPILER_IS_GNUCXX) endif() add_library(game ${SOURCE_FILES}) +target_link_libraries(game + ${LIBRARIES} +) add_executable(breakout main.cpp