CMakeLists.txt
changeset 9571 5e3a1adadfbb
parent 9466 510c9a2f0951
child 9717 45a632fd9d83
equal deleted inserted replaced
9570:8681778c5ede 9571:5e3a1adadfbb
  1388 endif()
  1388 endif()
  1389 
  1389 
  1390 ##### Installation targets #####
  1390 ##### Installation targets #####
  1391 install(TARGETS ${_INSTALL_LIBS}
  1391 install(TARGETS ${_INSTALL_LIBS}
  1392   LIBRARY DESTINATION "lib${LIB_SUFFIX}"
  1392   LIBRARY DESTINATION "lib${LIB_SUFFIX}"
  1393   ARCHIVE DESTINATION "lib${LIB_SUFFIX}")
  1393   ARCHIVE DESTINATION "lib${LIB_SUFFIX}"
       
  1394   RUNTIME DESTINATION bin)
  1394 
  1395 
  1395 file(GLOB INCLUDE_FILES ${SDL2_SOURCE_DIR}/include/*.h)
  1396 file(GLOB INCLUDE_FILES ${SDL2_SOURCE_DIR}/include/*.h)
  1396 file(GLOB BIN_INCLUDE_FILES ${SDL2_BINARY_DIR}/include/*.h)
  1397 file(GLOB BIN_INCLUDE_FILES ${SDL2_BINARY_DIR}/include/*.h)
  1397 foreach(_FNAME ${BIN_INCLUDE_FILES})
  1398 foreach(_FNAME ${BIN_INCLUDE_FILES})
  1398   get_filename_component(_INCNAME ${_FNAME} NAME)
  1399   get_filename_component(_INCNAME ${_FNAME} NAME)
  1416       DESTINATION "lib${LIB_SUFFIX}/pkgconfig")
  1417       DESTINATION "lib${LIB_SUFFIX}/pkgconfig")
  1417   endif()
  1418   endif()
  1418   install(PROGRAMS ${SDL2_BINARY_DIR}/sdl2-config DESTINATION bin)
  1419   install(PROGRAMS ${SDL2_BINARY_DIR}/sdl2-config DESTINATION bin)
  1419   # TODO: what about the .spec file? Is it only needed for RPM creation?
  1420   # TODO: what about the .spec file? Is it only needed for RPM creation?
  1420   install(FILES "${SDL2_SOURCE_DIR}/sdl2.m4" DESTINATION "share/aclocal")
  1421   install(FILES "${SDL2_SOURCE_DIR}/sdl2.m4" DESTINATION "share/aclocal")
  1421 else()
       
  1422   if(SDL_SHARED)
       
  1423     install(TARGETS SDL2 RUNTIME DESTINATION bin)
       
  1424   endif()
       
  1425 endif()
  1422 endif()
  1426 
  1423 
  1427 ##### Uninstall target #####
  1424 ##### Uninstall target #####
  1428 
  1425 
  1429 configure_file(
  1426 configure_file(