Skip to content

Commit

Permalink
Fixed CMakeLists.txt didn't require SDL2
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Dec 30, 2023
1 parent 1e867cf commit 7269833
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 3.16)
project(guisan VERSION 1.0 DESCRIPTION "Guisan")

find_package(SDL2 REQUIRED)
add_library(guisan STATIC
src/actionevent.cpp
src/basiccontainer.cpp
Expand Down Expand Up @@ -58,6 +60,6 @@ add_library(guisan STATIC
src/widgets/window.cpp)
target_include_directories(guisan PRIVATE ${SDL2_INCLUDE_DIRS} ./include)

TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${SDL2IMAGE_LIBRARIES})
TARGET_LINK_LIBRARIES(${PROJECT_NAME} PRIVATE SDL2)

install(TARGETS guisan DESTINATION ./lib)

0 comments on commit 7269833

Please sign in to comment.