Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
r41k0u authored Dec 10, 2023
1 parent 902dc3a commit 4c59942
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ target_sources(${PROJECT_NAME} PRIVATE ${SOURCES})
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
find_package(SDL2 REQUIRED)
find_package(SDL2_ttf REQUIRED)
message(STATUS "SDL2_ttf_INCLUDE: ${SDL2_ttf_INCLUDE_DIRS}")
include_directories(${SDL2_INCLUDE_DIRS};${SDL2_ttf_INCLUDE_DIRS})

if (MSVC)
Expand All @@ -27,7 +26,7 @@ if (MSVC)
VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/")
endif ()

message(STATUS "SDL2_LIBRARIES: ${SDL2_LIBRARIES}")
target_link_libraries(${PROJECT_NAME} ${SDL2_LIBRARIES};${SDL2_ttf_LIBRARIES})

set(SDL2_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/include")
set(SDL2_ttf_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/../include")

0 comments on commit 4c59942

Please sign in to comment.