Skip to content

Commit

Permalink
Merge pull request mobius3#2 from zshipko/master
Browse files Browse the repository at this point in the history
include SDL2_image libraries too
  • Loading branch information
mobius3 committed Nov 11, 2014
2 parents 7d5b48a + e7f0f92 commit d2ee466
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
set(SDL2_BUILDING_LIBRARY TRUE)
find_package(SDL2 REQUIRED)
find_package(SDL2_ttf REQUIRED)
find_package(SDL2_image REQUIRED)

set(API_HEADERS
KW_gui.h
Expand Down Expand Up @@ -40,7 +41,7 @@ set(LIB_SOURCES

include_directories(${SDL2_INCLUDE_DIR})
add_library(KiWi SHARED ${LIB_SOURCES} ${API_HEADERS})
target_link_libraries(KiWi ${SDL2_LIBRARIES} ${SDL2_TTF_LIBRARIES})
target_link_libraries(KiWi ${SDL2_LIBRARIES} ${SDL2_TTF_LIBRARIES} ${SDL2_IMAGE_LIBRARIES})

# Configure install stuff
install(TARGETS KiWi EXPORT KiWiTargets
Expand Down

0 comments on commit d2ee466

Please sign in to comment.