Skip to content

Commit

Permalink
Link OpenGL
Browse files Browse the repository at this point in the history
  • Loading branch information
austinmhorn committed Jul 26, 2023
1 parent bf486e6 commit 26d126d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ file( GLOB_RECURSE CPPS "${SOURCE_PATH}/*.cpp" )

add_executable( ${TARGET} ${CPPS} ${HPPS} )

target_link_libraries( ${TARGET} PUBLIC sfml-graphics sfml-window sfml-system sfml-system sfml-audio ${OPENGL_gl_LIBRARY} )

if( WIN32 )
target_compile_definitions( ${TARGET} PRIVATE WIN32 )
elseif( SFAFLE )
Expand All @@ -57,8 +59,6 @@ if( CMAKE_CXX_COMPILER MATCHES ".*clang[+][+]" OR CMAKE_CXX_COMPILER_ID STREQUAL
target_compile_options( ${TARGET} PRIVATE -Wall -Wextra -Wshadow -Wconversion -Wsign-conversion -Wunused-parameter -Wno-long-long -pedantic )
endif()

target_link_libraries( ${TARGET} PRIVATE sfml-graphics sfml-window sfml-system sfml-system sfml-audio)

install(TARGETS ${TARGET}
CONFIGURATIONS Release
RUNTIME DESTINATION)

0 comments on commit 26d126d

Please sign in to comment.