We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ed2ad3 commit 45a780dCopy full SHA for 45a780d
CMakeLists.txt
@@ -28,7 +28,12 @@ add_executable(demo
28
3rdp/shader_loader/src/shader_program.cpp
29
3rdp/randomColor-cpp/randomcolor.cpp
30
)
31
-target_link_libraries(demo PRIVATE csg SDL2::SDL2 SDL2::SDL2main GLEW::GLEW)
+if (WIN32)
32
+ target_link_libraries(demo PRIVATE csg SDL2::SDL2 SDL2::SDL2main GLEW::GLEW)
33
+endif ()
34
+if (UNIX)
35
+ target_link_libraries(demo PRIVATE csg SDL2::SDL2 SDL2::SDL2main GLEW::GLEW GL)
36
37
target_include_directories(demo PRIVATE 3rdp/flythrough_camera)
38
target_include_directories(demo PRIVATE 3rdp/shader_loader/include)
39
target_include_directories(demo PRIVATE 3rdp/randomColor-cpp)
0 commit comments